Regex tests fine but doesn’t work with Redirection
-
I’m having an issue with Redirection not matching Regex url’s when I believe it should. I have used two different PCRE Regex testing tools, and my Regex is working/matching how I expect. However adding the Regex to Redirection, it will not match the url’s I think that it should be.
Here is the Regex: \/([^\/]+\/serve\/?)(?:$|\?)
Examples of URL’s that should match (and do, with the test tools, but not with this plugin):
https://test.com/serve
https://test.com/serve/?param=1
https://test.com/serve/
http://test.com/serveExamples of test strings that should NOT match:
https://test.com/serve/ways-to-serve
https://test.com/serve/ways-to-serve?param=1Can someone tell me why Redirection is not matching my Regex pattern to url’s it should be?
Thanks!
- The topic ‘Regex tests fine but doesn’t work with Redirection’ is closed to new replies.