Title: Permalink migration issue
Last modified: May 23, 2021

---

# Permalink migration issue

 *  Resolved [exb1](https://wordpress.org/support/users/exb1/)
 * (@exb1)
 * [5 years ago](https://wordpress.org/support/topic/permalink-migration-issue/)
 * Hello there,
 * I have changed the permalink structure of a small news site a few weeks back 
   and I had to use an old outdated plugin called Postname Permalink Auto Redirect,
   as I couldn’t make it work with anything else. It does the job but not for everything
   and creates internal errors.
 * I would love to redo it and make it work this time with the Redirection plugin
   and regex. It was my 1st choice but a big failure. That’s why I switched to something
   else.
 * Basically, I have changed the structure from /%postname%/ to /%category%/%postname%/.
   I went to site > permalink migration and added /%postname%/ to redirect everything
   automatically to the new structure but it didn’t work.
 * I tried to create a regex rule, but it seems that I can’t find the right command
   to identify the main category of a post automatically. Do you have by any chance
   a way to create the proper rule or any other solution?
 * Thank you in advance for your time!
    -  This topic was modified 5 years ago by [exb1](https://wordpress.org/support/users/exb1/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [5 years ago](https://wordpress.org/support/topic/permalink-migration-issue/#post-14475269)
 * The permalink migration feature is in beta and does not cover every combination
   of permalink. This is one it does not currently cover.
 * It is not possible to use a regular expression to generate information that doesn’t
   exist in a URL.
 * At the moment the only solution is to create a redirect for each post.
 *  Thread Starter [exb1](https://wordpress.org/support/users/exb1/)
 * (@exb1)
 * [5 years ago](https://wordpress.org/support/topic/permalink-migration-issue/#post-14477743)
 * Hi John,
 * Thank you for your answer.
 * I understand better now why I was having such a hard time!
 * I will check regularly the updates regarding the permalink migration feature 
   then.
 * Best,

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Permalink migration issue’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [exb1](https://wordpress.org/support/users/exb1/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/permalink-migration-issue/#post-14477743)
 * Status: resolved