Redirecting to www

To force your page to always load from the www address, add the following domain to your .htaccess file in your public_html:

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


Note: substitute "exampledomain.com" for your actual domain

  • 30 Users Found This Useful
Was this answer helpful?

Related Articles

How do I add a 301 redirect?

There are numerous ways to add a 301 redirect, but the simplest way is by editing your .htaccess...

What is a 301 redirect?

A 301 redirect is used to direct viewers away from a particular site, or page on a site, to...

What's the difference between a 301 redirect and a 302?

A redirect allows you to send both users and search engines from one URL to a different URL....