How do I redirect non-www to www?

Simply add the following to the .htaccess file in your public_html folder:

RewriteEngine On
Options +FollowSymlinks
RewriteCond %{HTTP_HOST} ^domain\.com
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=permanent,L]

Be sure to replace domain with your domain name

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

Domain India Web Hosting Port Number port numbers

Frequently accessed port number for web hosting cPanel Login : 2082 Webmail Login : 2095 FTP...

Change Cpanel Password

Change Cpanel PasswordTo change your password follow the instructions listed below.Please follow...

How can I access my website statistics?

Your website's statistics are available under the Logs section in your cPanel. There you will see...

How do build website using RVSiteBuilder on cPanel?

 1.In order to login to your cPanel account, ...

What is a subdomain?

www.domain.com is a domain name. A subdomain is anything that replaces the www in a domain name....