-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Ability to have canonical root domain without redirect. #8250
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
Hmm, I think if you uncheck the canonical option from the other domain the page will be served from that domain (not sure), if that works you can manually set the canonical meta tags with this option https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_baseurl |
I have unchecked the option, but it still redirects. It may take a bit for things to resolve (guessing). If it works, I'll follow that route to set the canonical meta tags. |
Looks like now it redirects to the rtd.io domain :D
|
Redirecting to the RTD domain isn't the correct behavior either. We want all the domains to be equally accessible, but one domain "preferred" |
Hm. It looks like multiple domains is completely broken. This should probably get changed to "bug". It's either all domains redirect to readthedocs, or redirect to the canonical root. |
Yeah, that's the current behavior, it was implemented in that way. |
What is the point in adding multiple domains besides redirecting? |
I agree this shouldn't be the expected result, that's why I labeled this as |
Gotcha. Thanks. |
Uh oh!
There was an error while loading. Please reload this page.
Details
As of the deployment of #3231, the "Canonical" option under "Domains" no longer just sets the canonical meta data in non-root webpages, but also redirects the other pages to the "Root".
This comment from #3231 helps detail our use-case
We have a "primary" domain that we would prefer all search engines and SEO to use. This is https://docs.wpilib.org/. However, we also have a secondary domain https://frcdocs.wpi.edu/ that we direct users toward when the domain "https://docs.wpilib.org/" is blocked. It's often just domain blocked by over-aggressive school internet (this is our target demographic as we write docs for a high-school robotics competition).
Currently, https://frcdocs.wpi.edu/ redirects to https://docs.wpilib.org/. We'd like the ability to distinguish between "primary" domains and "have all sites redirect here" domains.
The text was updated successfully, but these errors were encountered: