Supporting Regular Expression (RE) Replacement Parameters?
-
I cannot find this in the documentation, so am asking here.
The docs say there is “full regular expression” support, and it does appear there is for URL matching. However, if you want to use a part of the matching expressing in the redirect destination, it is not clear whether that is possible.
For example, if matching:
/articles/123
I wanted to take the visitor to:
/features/123
and do so in a generic way for all articles, can that be done? In plain PHP (preg_replace) the RE would be:
#/articles/[0-9]+#
and the destination would then be:
/features/$1
That doesn’t work in this plugin, but is there a form that does?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Supporting Regular Expression (RE) Replacement Parameters?’ is closed to new replies.