Forum Moderators: open
mysite.com is cached on Jan 2
www.mysite.com is cached on Jan 9
So Google is treating them as 2 different sites. I’ve started to rewrite the content of my duplicate pages and I hope that I will get rid of the dup penalty but what should I do with the www.mysite.com and mysite.com versions? Did any one got rid of the duplicate content filter by rewriteing the site content?
Thank you.
I have a very similar problem. My entire website was crawled without the www. but my homepage shows as "www.site.com"
It appears google treats them as different sites. The index page with "www" ranks even better than content pages without.
I have tried to merge the site listing for a year now with no success.
I tried 301 redirect but it didnt work for me. Google asumed there were duplicates of pages. I will stay away from 301 redirects from now on.
I have absolute linking in all the site but even so, google does not get it.
I do not know what else to do
Sorry this is not really an answer, instead I join your question.
RewriteEngine on
RewriteCond %{HTTP_HOST} !^sitename\.com
RewriteRule ^.*$ [sitename.com%{REQUEST_URI}...] [R=301,L]
If you want to use the url with the www. you need to add it.
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.\sitename\.com
RewriteRule ^.*$ [sitename.com%{REQUEST_URI}...] [R=301,L]
Think it was do to me giving 302 redirects from
mysite.com/page.html -> www.mysite.com/page.html
I now do a 301 from mysite.com/anypage.html to www.mysite.com (root of site)
They aren't all gone yet - but some are gone - so it seems to be in the process of working.
One way or another they were showing up as "supplemental results" - so I don't think it was having a major impact.