seanh
07-31-2006, 08:34 AM
Our site is http://www.enhancedwealth.co.uk. This is also accessible at http://enhancedwealth.co.uk
I have just been told that this is a problem as the SE see this as duplicate content? As the domain is the same I think this is unlikely but does anyone have any views or experience with this situation?
Thanks
Sean
stymiee
07-31-2006, 10:14 AM
Google sees your website with the 'www' (http://www.example.com) as a different page the without (http://example.com). Pages that link to the page without the 'www' are hurting your pages with the 'www' as the PR is essentially being split between the two pages. Fortunately this is easy to fix. Use a 301 redirect to redirect Google, and everyone else, to the 'www' page from the non 'www' page. The code would look similar to this (mod_rewrite required):
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(www\.|$) [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
To go from the 'www' to non 'www' use this code:
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST}//s%{HTTPS} ^www\.(.*)//((s)on|s.*)$ [NC]
RewriteRule ^ http%3://%1%{REQUEST_URI} [L,R=301]
[/quote]