In old Apache, using /foo /bar is enough to redirect all requests to /foo and its subfolders and files to /bar, for example, /foo/abc.html becomes /bar/abc.html.
But in Netlify, this same redirect is applied only for the /foo folder itself, not its children. You have to explicitly say /foo/* /bar/:splat to get the same behavior as Apache.
I migrated the redirect rules from Apache to Netlify without taking that into account. So I need to review all the folder redirects and fix where needed.
In old Apache, using
/foo /bar
is enough to redirect all requests to/foo
and its subfolders and files to/bar
, for example,/foo/abc.html
becomes/bar/abc.html
.But in Netlify, this same redirect is applied only for the
/foo
folder itself, not its children. You have to explicitly say/foo/* /bar/:splat
to get the same behavior as Apache.I migrated the redirect rules from Apache to Netlify without taking that into account. So I need to review all the folder redirects and fix where needed.