django / django/djangoproject.com

Remove non-canonical docs versions from sitemap.xml

Open
#878 10 comments 1 reaction 0 assignees View on GitHub
good first issue
Dominant language
Python
Stars
2k
Forks
1.1k
Avg merge
3d 10h
Merged PRs (30d)
33

Description

## Acceptance criteria

- [ ] Board meeting minutes are accessible only on the `www` subdomain, not on the `docs` subdomain
- [ ] Community pages such as `/community/desktops/` and `/community/logos/` are available only on the `www` subdomain, not the `docs` subdomain
- [ ] If needed, links are updated or redirects are added to avoid 404s for these pages (investigation needed)

## Original report
It looks like we may be sending confusing signals to Google by putting old docs versions in `sitemap-.xml`, but then telling it only one of those versions is canonical:

screenshot 2019-03-02 08 20 29

Google's commentary on this error: https://support.google.com/webmasters/answer/7440203#submitted_url_not_selected_as_canonical

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the sitemap.xml and sitemap-.xml generation, then inspect the routes for board meeting minutes and /community/desktops/ and /community/logos/. Verify which pages are exposed on the www and docs subdomains, and check whether links or redirects are needed; done means non-canonical versions are absent without introducing 404s.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.