Skip to content

Conversation

@Vincent-Ngobeh
Copy link

Summary

  • Redirect /foundation/ and /community/ paths on docs.djangoproject.com to www.djangoproject.com
  • Uses 301 permanent redirects to preserve SEO
  • Preserves the full path and query string in redirects

Problem

Non-documentation pages (like /foundation/ and /community/) were incorrectly accessible on docs.djangoproject.com when they should only exist on www.djangoproject.com.

Fixes #878

Test plan

  • Added tests for /foundation/ redirect
  • Added tests for /community/ redirect
  • Added test for query string preservation
  • All existing tests pass

Redirect /foundation/ and /community/ paths from docs.djangoproject.com
to www.djangoproject.com with a 301 permanent redirect.

Fixes django#878
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove non-canonical docs versions from sitemap.xml

1 participant