[Plugin: Redirection] Bug in Regex found?
-
Hi
I have 2 rules
^/2009/04/30/my-old-postname/?$
and
^/en/2009/04/30/my-old-postname/?$Redirection for rule 1 (no language tag = german text version)
1. /2009/04/30/my-new-postname/Redirection for rule 2 (english language tag)
2. /en/2009/04/30/my-new-postname/Requested URL is “domain.com/en/2009/04/30/my-old-postname”, so actually rule 2 should be initiated since the request does NOT match rule 1, but match rule 2.
However, the rediretion plugin redirects to the target of rule 1, which is the wrong target.
Any ideas why this is going wrong????
The closing “/?$” allows URLs with or without trailing slash, hence “/2009/04/30/my-old-postname/” and “/2009/04/30/my-old-postname” are matching. The ^ in the beginning marks the being of a string.
Thx
Florian
- The topic ‘[Plugin: Redirection] Bug in Regex found?’ is closed to new replies.