Regex Redirection Not Working | WordPress.org

Hello,

I need some help as i cant get the Regex to work for dynamic redirection. Im trying to update a taxonomy from: url/places-to-stay/location to url/accommodation/location

need this to be regex and its not working with Rankmath unfortunately. ( works with redirection plugin )

Ive tried multiple variations but this should work… right now i get a redirection but to a completely different page that ends with the same location

I have reviewed https://projectdmc.org/support/topic/regex-redirection-not-working-at-all/ and https://projectdmc.org/support/topic/redirection-not-working-53/

i have tried to disable the Redirect Attachments option but im getting an 501 error. not sure why. Your help would be appreciated

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer