• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

How can we make all website requests go to www.xxx

Hello,

You will have to setup the redirection in .htaccess file for your domain so that all traffic will be redirect to www
 
Hello,

You will have to setup the redirection in .htaccess file for your domain so that all traffic will be redirect to www
 
Thank you for your response InderS. I added this in .htaccess:
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.com [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 (L)
but that is not working. Can you possibly help me with what is wrong with that? In the error_log I see
Code:
[Wed Jun 18 13:14:52 2014] [alert] [client 111.222.333.444] /var/www/vhosts/domain.com/httpdocs/.htaccess: RewriteRule: bad flag delimiters
I hope that helps identify what I have done wrong?
 
Back
Top