Quote:
Originally Posted by Linda Buquet
Again I have not kept up with it lately and am not sure it's even still an issue, but it could not hurt to fix it. Just be sure you do the redirect right. Have your tech guys look into it.
|
Yep it's still an issue. Google see's both of these URL's as distinctly different from one another. Not forcing Google to index your site in one distinct way will also dilute your page rank.
Stick the following code into your .htaccess file to fix this issue.
ONLY do this if you know what you're doing and are familiar with .htaccess files.
The example will make all requests go to
www.yourdomain.com. Simply reverse the example if you want all requests to go to yourdomain.com (without the www).
Code for .htaccess: (change to YOUR domain)
Code:
RewriteEngine on
#Redirect http://putyourdomainhere.com to http://www.putyourdomainhere.com RewriteCond %{HTTP_HOST} ^putyourdomainhere.com
RewriteRule ^(.*)$ http://www.putyourdomainhere.com/$1 [r=301,L]
This happened to me last year as well. I went from 130K pages indexed to roughly 200. That pretty much blew!
Not to be the harbinger of doom and gloom but it took Google about 2 months to straighten this out and I had to appeal for a reindex of my site. Somewhere in the forum is a thread on how to request this from Google. I'll go look for it.