• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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