Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

So I recently switched to nginx but I didn't specify my site_name in nginx.conf, which I've learned is interpreted as a wildcard domain, meaning you can access the site through any subdomain. I had a subdomain DNS 'A' record set up pointing to my site's ip. Somehow google picked up on the subdomain and indexed my entire site's content through the subdomain and now my traffic plummeting. It's down from 4k uniques / day to 1.2k / day. Ouch!

I've specified my site name, and any traffic not coming through www.mydomain gets 301 redirected to www.mydomain. What else can I do to reverse this catastrophe?

I've considered conical links to my content, but I'm hesitant to introduce too many changes at once. I submitted my sitemap to google over a year ago but I haven't updated it since. I do not have a robots.txt file for the site. Is it possible to reverse the damage done?

My site has quality, unique content, and I'm not aggressive with seo, I rarely make changes and have it dialed in to correctly reflect what the site offers.

share|improve this question

migrated from serverfault.com Mar 8 '13 at 14:35

This question came from our site for professional system and network administrators.

3  
You are doing the right thing. HTTP 301 is just what Google recommends in these situations: en.wikipedia.org/wiki/HTTP_301 –  jap1968 Feb 16 '13 at 19:50
1  
This looks like a question for our sister site Webmasters. –  Michael Hampton Mar 8 '13 at 13:46

1 Answer 1

The 301 redirect that you are doing is the correct way to recover. The canonical tag that you are considering and 301 redirects can't be used at the same time. The canonical tag is only for pages that can't be redirected.

Recovery should be in a week to a month. If it is longer than that, it is likely that something else has happened.

share|improve this answer
    
+1 But I wouldn't say that Canonical tags are for non-redirect pages only. They should be on every page where the page had a definite canonical URL. –  Chris S Mar 8 '13 at 14:35
    
A redirect is not a page, as such it is not possible to put a canonical tag on a redirect. Well, technically there is a page for browsers that don't support redirects. However all browsers and crawlers now support redirects and that page is completely ignored by search engines. –  Stephen Ostermiller Mar 8 '13 at 14:47
    
I see what you're saying now, and agree. I was thinking something else. –  Chris S Mar 8 '13 at 14:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.