johngodley / redirection

Manage all your WordPress 301 redirects and monitor 404 errors
https://redirection.me
GNU General Public License v3.0
553 stars 138 forks source link

Use regex capture in target URL #3896

Closed ocgltd closed 1 month ago

ocgltd commented 1 month ago

This is a support question - maybe becoming a feature request. But I can't figure this out.

I want to match the regex "/en/(.*)" and redirect to "/\1". I can't figure the syntax (if this plugin even supports using the capture group).

Is there an example available that shows this? Is use of capture groups supported?

johngodley commented 1 month ago

The plugin uses standard PHP regular expressions and does not implement it's own expression support.

Support can be found here: https://redirection.me/support/redirect-regular-expressions/