ucarmetin
Member
Posted 1 year ago #
Hey!
I'm running Redirection 2.2.5 on WP 3.1.3. I have ~600 posts to be redirected due to the change I've done in permalink structure. Old permalink structure was
category/post-title
which resulted in
http://www.mysite.com/subfolder/category/post-title
I changed this structure to
year/month/post-title
which resulted in
http://www.mysite.com/year/month/post-title
Any suggestion on how to address all posts on my site using Redirection plugin?
Thanks
http://wordpress.org/extend/plugins/redirection/
icemonkey9
Member
Posted 1 year ago #
Was there ever a solution given? I have the same issue!
ucarmetin
Member
Posted 1 year ago #
Hey icemonkey9,
Unfortunately, no solution my problem so far. So, while waiting for such solution, I did individual redirects.
Strange
I actually thought one of the points in this tool was that it could handle this very scenerio
I'm looking to change my structure as well
let us know if you do get a solution
I don't think this is easily done automagically as the redirection plugin has no way of knowing what year or month to replace the category with.
It can automagically add a redirect if you change a post-title, but not if you change the permalink structure.
For the above you will need to add rules for each post, but you can group them together by month using regular expressions.
For each year/month combination you can add a rule with all the post-titles for that year/month in the source URL regex seperated by the | character. Of course you will have to replace the year and month in the target URL with the relevant info too.
Source URL: ^/subfolder/[a-z0-9_-]/(post-title1|post-title2|post-title3)[/]?$
Regex: on
Target URL: /year/month/$1
Hope this helps.
Smile,
Juliette