Bug #105631
closedsite base is overridden by base variant in the site module
0%
Description
My page must be available under "https://mydomain.tld" as well as "https://www.mydomain.tld" - but when I set the site base to "https://mydomain.tld" and then add the base variant "https://www.mydomain.tld" with applicationContext == "Production" then "https://mydomain.tld" is no longer available and throws a 503 error. So it's either one or the other. I would have assumed that both bases are equally working - which is not the case. Why is this so?
Updated by Garvin Hicking 4 days ago
- Status changed from New to Closed
Please check out https://stackoverflow.com/questions/62571049/how-to-configure-multiple-domains-for-same-root-page-id-within-site-configuratio - specifically the b13/host_variant extension, this should help your cause.
You may also want to think about using url rewrite/redirects to only point to one canonical URL to prevent duplicate content.
I hope that helps and am closing the issue for now (feel free to report back if that does not solve your issue, please with your full site config.
Updated by Michael Perlbach 3 days ago
I went for redirect now. So this can be closed.