0

Why does the Google search engine indexes a Stack Overflow question two times?

Please see this Google Index in this question Display of html contents in C# - Stack Overflow and c# - Display of html contents in csharp - Stack Overflow,these two question are same.

Why the same question was two time indexed in google ?

closed as off-topic by Arjan, Martijn Pieters, yoozer8, Lance Roberts, psubsee2003 Jul 29 '13 at 19:21

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to seek input and discussion from the community. If you have encountered a problem on one of our sites, please describe it in detail. See also: What is "meta"? How does it work?" – Arjan, Martijn Pieters, yoozer8, Lance Roberts, psubsee2003
If this question can be reworded to fit the rules in the help center, please edit the question.

  • This is an observed behavior. No need to worry. – Anoop Vaidya Jun 8 '13 at 7:45
  • ok! Can i do this in my website ? – user224804 Jun 8 '13 at 7:48
  • Why the fake edit? This has been answered, right? – Arjan Jul 29 '13 at 16:33
  • @Arjan . any one does not answer to me. so i put the answer vote for that he. okay thnx for your edit . i will wait for any other answer ... – user224804 Jul 29 '13 at 16:35
  • Weird. Anyway, I feel Pekka's answer (and the link in his comment) is the best guess we can make about Google's internals. Voting to close as not related to Stack Overflow. – Arjan Jul 29 '13 at 16:42
5

This is likely because of an edit that changed the title - and hence, the URL Stack Overflow generates for the post - in between two Google Bot visits.

It's a Google glitch, probably well known and expected, and will be fixed soon, when Googlebot visits again and sees that the canonical URL for the second hit has changed.

ok! Can i do this in my website ?

There is probably no way to exploit this behaviour on your web site. If you provide the same content under multiple URLs, you will probably be punished by the search engine, instead of being listed twice.

  • when Googlebot visits again and sees that the canonical URL for the second hit has changed. It's good . But how can this question indexed quickly ? – user224804 Jun 8 '13 at 8:03
  • 1
    @Ramesh see How does Stack Overflow work so well with search engines? in short, no one knows for sure. There isn't any one specific technique that they're using; they're just an immensely popular resource. – Pëkka Jun 8 '13 at 8:10
  • @Ramesh, also note that Google knows the initial search index is often outdated quite fast: it refuses to show you its cache for very recent questions. It seems it only shows that cache when the content is a bit more stable. – Arjan Jul 29 '13 at 16:25