302 redirect with splat not working

Hi, I’m failing to understand why my redirects won’t work.

I have redirects in this format
/part1/part2/* /part1/part2/ 302
that I need so that any access to paths inside /part1/part2/ (e.g. /part1/part2/test404) gets redirected to /part1/part2/.

Unfortunately, these don’t work and I have no idea why. Just changing the 302 to 200 seems to work, but I wanted a 302 instead.

I can’t share the website name and test urls publicly but I’ll send a DM to whoever is available to help.

Thanks in advance.

Ok, interesting, did one last test where I used this format instead:
/part1/part2/* /part1/part2/index.html 302
and now it works perfectly!

Now the question remains, why do I need the index.html? It doesn’t seem to add anything…

Please DM the site name to me. I’ll check further.

Hi, @fvieira. Hrishikesh shared the information with me and I do agree that the 302 status redirect rules without the index.html do not work while the one with it do. I also agree that adding the index.html to the rule should not be required.

We made some recent changes to how redirects are processed that may resolve this. Would you be willing to please try the rules without the index.html again as they may work now with the changes made.

However, if they still don’t work, please let us know and we’ll get an issue filed for this.