Open Daltz333 opened 3 years ago
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
$ curl -I https://docs.wpilib.org
HTTP/2 302
date: Wed, 09 Jun 2021 15:59:52 GMT
content-type: text/html; charset=utf-8
content-length: 0
location: https://frc-docs.readthedocs.io/en/stable/
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.
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 design decision
, I think this is mostly related to our resolver code always pointing the one domain.
Gotcha. Thanks.
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.