Strange Results Using Regex
-
Hi there!
I’m just attempting to use the Regex option to redirect a directory back to the main page of our website.
I’m currently testing this on this URL: [website].com/dynamic-link/news-feed?post=11
With this Regex: /dynamic-link/.*
However it’s redirecting to: [website].com/https:/[website].com/news-feed?post=11Strangely, if I remove the question mark, the redirect works flawlessly.
I found someone stating that you need to escape the question mark, but the following regex is also not working: /dynamic-link/.*\?.*
(I have no idea if that particular expression should work, mind you)Apologies if this has been answered before (I couldn’t find anything while searching), but would love for someone to point me in the right direction (:
The topic ‘Strange Results Using Regex’ is closed to new replies.