Hi all, running into an issue with my _redirects file and just wanted to see if anyone knows of a solution. I have some old URLs that I need to redirect to a new domain. I’ve setup redirects like this:
I noticed that when hitting my Netlify site without www, the redirect works fine. However, if using the www subdomain, the redirect doesn’t work. It feels like the bare domain and www should be interchangable when it comes to redirects, but that doesn’t seem to be the case.
My annoyance with this approach comes from the fact that I can run this same app on different subdomains (beta build, etc), so for every redirect I want to add, I have to add at least 4 versions. That’s why I thought the regular /api/* path-only redirect would be ideal.
Is there a way to make this work the way I’m describing? Thanks in advance.
should work regardless of the domain it is on (it would even work on the YOUR_SITE.netlify.app domain too—does it, out of curiosity?) as it does for the other sub-domains you have (beta, etc.)
If you can share the site in question and any other redirects you have in place that could help isolate a cause/solution.