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 ^(.*)$$1 [R=permanent,L]

Be sure to replace domain with your domain name

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles


Redirects button The Redirects area allows you to redirect Internet traffics from one web page to...

Removing a redirect

Remove a redirect when you no longer want to redirect Internet traffic from a web page. There is...

Powered by WHMCompleteSolution