is this 301 redirect OKAY ??
- SEO |
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteRule ^(.*) http://www.example.com/$1 [R=301,L]
However, I've been worried about "duplicate content" because my homepage gets displayed even when the "www" is messed with, for example:
www3.example.com
abcdef1234.example.com
So over at the apache forums, they suggested this:
RewriteCond %{HTTP_HOST} !^(www\.example\.com)?$
RewriteRule ^(.*) http://www.example.com/$1 [R=301,L]
That does work. However, before I implement it, I wanted to make sure it is "SEO friendly," e.g. it's not doing something horrible for the search engines that I don't know about yet.
What do you guys think? :confused:
If you were disappointed in your results today, lower your standards tomorrow.