What manner of regex be this?
-
I’m a little confused at the way Redirection has implemented regex.
I would like to redirect a URL:
https://www.example.com/redirectI also have a tag using the same term:
https://www.example.com/tag/redirectIn Redirection, if I setup the following redirect:
Source URL: /redirect
Target URL: /some/other/page..the result will be that /redirect gets properly sent to /some/other/page – but, requests for /tag/redirect will get sent to https://www.example.com/taghttps://www.example.com/some/other/page
Ooops!
So I try various regex:
/redirect$
^/redirect$
^redirect$All give the same result: https://www.example.com/tag/redirect gets incorrectly redirected when in fact I only want to target /redirect
What gives? Can someone shed some light on the way that regex has been implemented by Redirection?
- The topic ‘What manner of regex be this?’ is closed to new replies.