Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider using mkdocs-redirects plugin over Cloudflare redirects #1207

Open
StevenMaude opened this issue May 2, 2023 · 0 comments
Open

Comments

@StevenMaude
Copy link
Contributor

StevenMaude commented May 2, 2023

https://github.com/mkdocs/mkdocs-redirects

Advantages

  • Configured more explicitly in the MkDocs projects
  • Shouldn't have arbitrary redirect failures, as happened in the past with Cloudflare and was to do with the order of redirects
  • Shouldn't need to ensure the redirects work, unlike Cloudflare (for which we added an automated GitHub Actions check)
  • Independent of the host; so if we move from Cloudflare to something else, we don't need to recreate the redirects.
  • Should work in local preview, which the Cloudflare redirects don't.

Disadvantages

  • No 301 redirects possible — we do use 301 redirects already, although these are perhaps better avoided anyway, in case you want to reuse the URL and because of persistence in browser caching.
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

No branches or pull requests

1 participant