I have a Netlify site (garaza.netlify.app) which has a set custom, primary domain (https://autogaraza.com).
Since I don’t need the default Netlify subdomain, I want to redirect the traffic to the primary domain.
I’ve tried with _redirects file:
/category/uncategorized/ / 301
https://garaza.netlify.app https://autogaraza.com/ 301!
https://garaza.netlify.app/* https://autogaraza.com/:splat 301!
Note that the relative path redirects work as expected, however the domain-level redirects have no effect.
I’ve also tried with netlify.toml:
[[redirects]]
from = "https://garaza.netlify.app/*"
to = "https://autogaraza.com/:splat"
status = 301
force = true
Still doesn’t work. Please help.