[issue40012] Avoid Python 2 documentation to appear in Web search results

Ammar Askar report at bugs.python.org
Thu Mar 26 00:44:31 EDT 2020


Ammar Askar <ammar at ammaraskar.com> added the comment:

Instead of noindex maybe the 3.x documentation can be marked as the canonical one: https://support.google.com/webmasters/answer/139066

This should still allow the old docs to be crawled but emphasize the latest docs on the website:

> Google Search result usually points to the canonical page, unless one of the duplicates is explicitly better suited for a user: for example, the search result will probably point to the mobile page if the user is on a mobile device, even if the desktop page is marked as canonical.

Presumably the "better suited" means that if you search for "python2 timeit" you'd still find the py2 docs.

Terry Reedy, could you link the earlier issue so this information can be posted there, or are you referring to the issue Karthik linked?

----------
nosy: +ammar2

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40012>
_______________________________________


More information about the Python-bugs-list mailing list