-
Hi, I’m trying to set up a regex redirect in RankMath using a negative lookahead but its not working at all. – Does RankMath not support these expressions? Example below:
Redirection Source: .*\/downloads\/brochure\/(?!.*v7ne12mrw)
Redirect Destination: https://www.example.com/downloads/access-error/What I want this to achieve:
Example 1 Visit: https://www.example.com/downloads/brochure
Example 1 (gets redirected): https://www.example.com/downloads/access-error/Example 2 Visit: https://www.example.com/downloads/brochure/?code=v7ne12mrw
Example 2 (not redirected): https://www.example.com/downloads/brochure/?code=v7ne12mrw
The ticket ‘Regex redirect with a negative lookahead’ is closed to new replies.