Closed aureliojargas closed 6 years ago
Also, I'll need a script to check if any folder is not on this redirect list.
Workaround done and tested.
Well, as it turns out, it was a bug on Netlify, caused by the asset optimization feature (I used that to minify and bundle the CSS files). Just deactivated that and the folder redirects started to work. So I reverted all the work here and now everything is fine. 👍
As explained in #20, Netlify serve two URLs for each folder: with and without the trailing slash.
The relative path problem I'll fix in that issue, but it's still annoying two have this behavior (and might be bad for SEO).
I've contacted Netlify support for a solution, but for now I can make a workaround hardcoding 301 redirects for all folders of my site in the _redirects file.