search engine optimization

301 Redirect Instructions - Non www to www

Follow the simple example below to have .yoursite.com redirect to www.yoursite.com.

Word of warning, you will have to edit your .htaccess file to accomplish this. Please be careful and always make a backup of the original just in case there is a problem.

First, open your .htaccess file with a plain text editor such as notepad. Next copy and paste the following code into the .htaccess file;

RewriteEngine on

RewriteCond %{HTTP_HOST} ^yoursite\.com$ [NC]
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=301,L]

Next, simply replace “yoursite” with your unique URL, save and upload. Now when somebody types in yoursite.com they will be automatically redirected to www.yoursite.com.

Bookmark to:
Add '301 Redirect Instructions - Non www to www' to Del.icio.us Add '301 Redirect Instructions - Non www to www' to digg Add '301 Redirect Instructions - Non www to www' to FURL Add '301 Redirect Instructions - Non www to www' to blinklist Add '301 Redirect Instructions - Non www to www' to My-Tuts Add '301 Redirect Instructions - Non www to www' to reddit Add '301 Redirect Instructions - Non www to www' to Feed Me Links! Add '301 Redirect Instructions - Non www to www' to Technorati Add '301 Redirect Instructions - Non www to www' to Socializer 







Comments are closed.