We have 2 redirect rules like this in our .toml file (just changed the domain name):
[[redirects]] from = "https://blog.example.com/*" to = "https://example.com/blog/:splat" [[redirects]] from = "https://blog.example.com" to = "https://example.com/blog" force = true
Redirection is working for blog.exemple.com/any-path-name/
Problem is, blog.exemple.com alone is not redirected (we added the 2nd rule in case the 1st one was not enough, but it didn’t help).
We don’t have redirects in /public or elsewhere.
The blog subdomain is added as a domain alias on Netlify and there is a CNAME pointing to our Netlify app path.
Thanks for any help.