View Single Post
Old 01-03-2006, 11:35 PM  
Hardlinks
Confirmed User
 
Join Date: May 2005
Location: Great White North
Posts: 1,333
Quote:
Originally Posted by Tempest
RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com [NC]
RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]

Put that in your .htaccess file and problem is solved...

And this IS a problem, the search engines follow those links throughout the page as you add links ..ie /pagea.html so the bot follows http://domain.com/pagea.php and all the rest and caches and indexes them, sounds good but its not.

On Google this may be enough to convince them that your domain is full of duplicate pages. Use the rewrites to send them all to 1 of the two, but i think natural linking mostly happens with the www. so i use it.
Hardlinks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote