cart cart FAQ Support
  •   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.


 

cPanel Hosting Linux Shared Hosting Merchant Accounts Merchant Accounts Merchant Accounts PayPal

Account Management

Support Helpdesk

Web Hosting

Semi-Dedicated Servers

Domain Names

Dedicated Servers

Other Services

Datacenters