Hello,
I’m trying to setup some domain-level redirects for my site, but it doesn’t seem to work as expected
I’ve used the docs availble here and followed this guide when trying to do the initial troubleshoot, but I’m still stuck, so any help would be appreciated!
My netlify site name is quirky-carson-d332f7.netlify.app
I have the following custom domains configured on the Domain management:
-
xn--90abbedctovpib9azlrc.news
(primary) -
www.xn--90abbedctovpib9azlrc.news
(redirects automatically to primary) -
xn--90abbedctovpib9azlrc.xn--p1ai
(domain alias) -
www.xn--90abbedctovpib9azlrc.xn--p1ai
(domain alias)
I understand the domains might seem a bit weird, but its because this is punnycode to represent cyrillic characters in ASCII. These are used in all our DNS records, as well as on Netlify, and all domains are currently working using the deployed Netlify app without any issues.
The problem now is that we want to start doing redirects from all the domain aliases to our primary domain. Following the docs and guide above, I chose to go for these redirects in our netlify.toml
file:
[build]
functions = "./functions"
[[redirects]]
from = "https://xn--90abbedctovpib9azlrc.xn--p1ai/*"
to = "https://xn--90abbedctovpib9azlrc.news/:splat"
status = 301
force = true
[[redirects]]
from = "https://www.xn--90abbedctovpib9azlrc.xn--p1ai/*"
to = "https://xn--90abbedctovpib9azlrc.news/:splat"
status = 301
force = true
As I understand, the force = true
should force the shadowing, thus both domains should be redirect to the primary domain, which is the exact same behaviour I get when accessing www.xn--90abbedctovpib9azlrc.news
, and thats the behaviour I want for all domain aliases as well.
Following the troubleshoot guide linked above, I could check that all 3 redirect rules are being processed (I imagine the 2 configured here, plus the one from www
primary domain)
I also found doing some search on another Community posts mentions of people saying you cant use Pretty URLs, but this site has Asset optimization disabled altogether
Am I missing something? Any help or pointers are appreciated!