Regex redirect with capture groups
-
I would like to setup regex redirects when a slug has changed for a custom post. For example:
https://<domain>/reviews/playdoh => https://<domain>/toy-reviews/playdoh
https://<domain>/reviews/lego => https://<domain>/toy-reviews/legoNormally a regex for this would be:
From: https://<domain>/reviews/(.*)
To: https://<domain>/reviews/$1However it looks like Yoast redirect function is not supporting the reference sign $1. Is there another way to specify this or does this functionality have to be build?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Regex redirect with capture groups’ is closed to new replies.