The Internet Exploits of a Webmaster Entrepreneur

301.Redirects

If you have backlinks both with, and without the "www" then there's a good chance one of them won't showing be showing the correct pagerank. One way to fix this is by a 301 redirect so that you can ensure people are taken to the proper domain. I don't recommend messing around with your site's .htaccess file. I've taken sites offline with just a simple mistake. But if you need to do a 301 redirect, here are some foolproof instructions:

To make your site www

RewriteEngine on
Options +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteCond %{HTTP_HOST} ^yourdomain\.com$ [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]
</IfModule>

To make your site non www

RewriteEngine on
Options +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteCond %{HTTP_HOST} ^www.yourdomain\.com$ [NC]
RewriteRule ^(.*)$ http://yourdomain.com/$1 [R=301,L]
</IfModule>

 

Design downloaded from FreeWebTemplates.com
Free web design, web templates, web layouts, and website resources!Design by NodeThirtyThree