Add a redirect for a URL path and all subsequent sub-paths

I am looking for a way to add a redirect for a URL path and all subsequent sub-paths, through a single [[redirects]] condition.

For example:

/province/city/
/province/city/street
/province/city/street/house
/province/city/street/house/[so on]/…

We tried the following; but neither of these work – clearly we’re missing something or doing it wrong:

/province/city/*
/province/city/**/*

Tech stack
NextJS and React

hi there, have you been following along with these docs on splats:

and can you confirm that your redirects are being processed:

An additional concern might be that if you are also performing routing with next, there might be some interference between the two (netlify’s redirect engine and next).

the best way to test that would probably be to have a little test site without next where you test your redirects syntax and see if it works properly without next. if no, then you’ll need to do a bit more troubleshooting:

if yes, then we’ll need to figure out how to make your next redirects and netlify redirects play nicely together, but lets go through the above steps first. try this and let us know?