2

I did a small coding mistake and Google indexed my site incorrectly.

This is the correct form: https://www.foo.com/urunler/171/TENGA-CUP-DOUBLE-HOLE

But Google indexed my site like this: https://www.foo.com/urunler/171/cart.aspx

First I fixed the problem and made a site map with only the correct link in it. Now I checked webmaster tools and I see this:

Total indexed 513 Not selected 544 Blocked by robots 0

So I think this can be caused by double indexes, and it looks like the pages not selected makes the correct pages not indexed. I want to know how to fix the "https://www.foo.com/urunler/171/cart.aspx" links. Should I fix in code or should I connect to Google to re-index my site?

If I should redirect wrong/duplicate links to correct ones, how should that be done?

1 Answer 1

4

Providing all your links go to correct canonical URLs, then you should set up 301 redirects from the erroneous pages to the canonical URL. This will immediately fix all the links for users following incorrect links in the SERPs, and over time Google will correct the links in the SERPs.

2
  • do I have to use 301 page or can I redirect to correct one at pageload?
    – Mert
    Sep 24, 2012 at 9:53
  • I used this code; HttpContext.Current.Response.Status = "301 Moved Permanently"; HttpContext.Current.Response.AddHeader("Location", Request.Url.ToString().ToLower().Replace(Request.Url.AbsoluteUri, "correct URL"));
    – Mert
    Sep 24, 2012 at 10:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.