Skip to content

Redirect from master to main does not the SEO issue with contribution_guide.html #12

@svekars

Description

@svekars

We need to unlist this page in Google: https://pytorch.org/docs/master/community/contribution_guide.html which is at the moment, the first result and appears like this:
Screenshot 2024-09-06 at 3 41 38 PM

I have first proposed to add the noindex tag with this PR: #10

Then according to Google's recommendations, I proposed to disable the Dissalow rule for master in robots.txt:
pytorch/pytorch.github.io#1723

However, a better solution was proposed by @malfet to create a symlink to redirect master to main, which we implemented.

However, this solution presents issues with the user experience:

  • Although we redirect master to main and the correct page is displayed, in the path, there is still master (which can be confusing to the users)
  • https://pytorch.org/docs/master/community/contribution_guide.html is still the first result in Google and even though it forwards to the correct link, there is no description to that page. Ideally, we want Google to forget that page and learn to forward to main or stable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions