My site’s Primary Domain is kieran-mcguire.uk/. Its Default Subdomain is kieran-mcguire.netlify.app/.
I’m trying to redirect another domain - kieranmcguire.uk/ - to my primary domain.
I’ve added kieranmcguire.uk/ as a Domain Alias to the site in Netlify.
In my domain management tool, DNSimple, I have these records (among others):
The nameservers are DNSimple’s, I am not using Netlify DNS.
In my netlify.toml file, I have these redirects rules near the top. They are not limited to any context, as that seemed to not work either and I’m happy for them to apply all the time.
[[redirects]] from = "kieranmcguire.uk/*" to = "kieran-mcguire.uk/:splat" status = "301" force = "true" [[redirects]] from = "www.kieranmcguire.uk/*" to = "kieran-mcguire.uk/:splat" status = "301" force = "true" [[redirects]] from = "kieran-mcguire.netlify.app" to = "kieran-mcguire.uk/" status = 301 force = true
My expectation was that this domain would point to the Netlify site, like a normal domain, but that Netlify would then follow these rules and redirect me to https://kieran-mcguire.uk/, always.
This is not happening.
Any ideas? What have I missed?
(I couldn’t post this with so many links in it, so have stripped out the HTTPS parts. Assume every link is HTTPS.)