Redirect if contains

Hi there,
Is it possible to create a redirect rule that redirects if the url contains the given text?
I tried this:


but it doesn’t work

hi there DAGRA,

here is the redirect documentation for Netlify’s redirect engine:

we don’t support conditional statements in our redirects at this time. Are you using some kind of framework to create your site? you might find that a framework that supports conditions as part of its internal routing is the solution you need to accomplish this goal.