-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
How do exact redirects interact with other redirects? #9988
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
Comments
This is a good question. I'll have to double check with the code, but I'd say that people will be redirected twice:
First redirect is called "system redirect" in the source code and the second one "user redirect" |
Ok |
I found a project in a similar state to what you described and ran a small test. It seems my theory was correct:
Is this helpful for you? Does it work as you want? |
Thanks a lot! This is really helpful. I think the conclusion is that adding a custom domain redirect should not break anything 😄 and in any case, seems like something that can be easily rolled back if the world crumbles. Closing this for now! |
Thanks @humitos and @astrojuanlu -- That's good to know and I think we have to take a deep breath and try it. I appreciate the ⭐ ⭐ ⭐ ⭐ ⭐ help! Thanks again. |
FTR, we launched today |
That's excellent news! Thanks for the feedback and sharing it back here 💪🏼 |
Details
We have some questions about redirects - I was hesitant whether to send a private support request (as encouraged by the issue form), but since one could consider this a documentation bug, I went ahead and opened an issue instead.
Comes from https://stackoverflow.com/q/75321853/554319, opened by my colleague @stichbury
I currently have docs on RTD (and have had them there for 3 years). We have moved pages around as versions changed, so have a set of about a hundred exact redirects, something like this:
Now I have a custom domain and want to point everything with a canonical link over there.
What will happen to those redirects? Are they applied first so someone with a bookmark to
intro.html
is pointed tosetup-guide.html
over onproject.readthedocs.io
and then the redirect tomyprojectname.com/docs/
applied?That is, will this happen?
Basically we're too scared we'll break the whole edifice and end world order.
The text was updated successfully, but these errors were encountered: