Urban Giraffe Support | Redirection
Regex: the "+" dissapears
Hello,
i like this plugin very much and it works very good.
Now i have a blog where i have to use regular expression for creating redirections.
The old permalink structure was: "/%postname%_%post_id%.htm"
The new permalink structure is: "/%postname%.htm"
So, i want to redirect for example:
from: "/prosit-neujahr_97.htm"
to: "/prosit-neujahr.htm"
I tryed a little bit with my editor and got this solution:
from: "(^*)_[0-9]+.htm$"
to: "\$1.htm"
But when i try to configure the options of the plugin the "+" Character disappears and there is an "Space" instead (Regex option is marked).
So i got this error massage, when i try to use it:
redirection/models/redirection_item.php on line 231
I tryed a few things to get the "+" in the from line, but nothing helps.
Any hints or suggestions?
Nils
Responses
Posted 6 months ago by Member
Meanwhile i got a solution that works in the .htaccess:
RedirectMatch permanent ([^/]+)_[0-9]+.htm$ /$1.htmBut when i try to do the same in the redirection plugin both "+" characters disappear again :( .
Posted 6 months ago by Member
oh, i forgot ...
WordPress 2.3.3 and Redirection Plugin 1.7.26
Reply
You must log in to post.