Title: Regex pattern for permalink change
Last modified: October 26, 2022

---

# Regex pattern for permalink change

 *  Resolved [zaphiref](https://wordpress.org/support/users/zaphiref/)
 * (@zaphiref)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/regex-pattern-for-permalink-change/)
 * If there is a permalink structure change from
    /%year%/%monthnum%/%day%/%postname%/
   To /%category%/%postname%
 * or any such change such as from
    /%postname% to /%category%/%postname%
 * What is the correct Regex pattern from
    Source: to Target:
 * To create a site-wide 301 redirect for all the articles that will have this change

Viewing 1 replies (of 1 total)

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/regex-pattern-for-permalink-change/#post-16147170)
 * You should use the permalink migration feature:
 * [https://redirection.me/support/site-options/](https://redirection.me/support/site-options/)

Viewing 1 replies (of 1 total)

The topic ‘Regex pattern for permalink change’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [John Godley](https://wordpress.org/support/users/johnny5/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/regex-pattern-for-permalink-change/#post-16147170)
 * Status: resolved