Rewrite mod for non-www pages to redirect to www pages.

  •   10/03/2014 8:40 AM

To make your website always redirect to the www subdomain you add the following code to an .htaccess file in your main /public_html folder

RewriteEngine On
RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Please note if you have an SSL Certificate, it should be issued with the www subdomain to use this code.  Also this blanket code that covers all directories in your website.  If you have any subdomains created, you may have to add to this code, or create additional htaccess files in the subdomain directories to make them work.

Please open a support ticket if you need any additional help.