Title: Regex does not work
Last modified: June 9, 2021

---

# Regex does not work

 *  Resolved [federicof](https://wordpress.org/support/users/federicof/)
 * (@federicof)
 * [5 years ago](https://wordpress.org/support/topic/regex-does-not-work/)
 * Hi there,
 * I would like to create a rule to redirect all page from an old folder to another
   one. For example: /oldfolder/page must redirect to /newfolder/page.
    I tried 
   with: Source URL: /oldfolder/(.*) Target URL: /newfolder/$1 But it doesn’t work.
   Can someone help me?
 * Thank you
    Federico

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/regex-does-not-work/#post-14540384)
 * Have you cleared your cache?
 *  [redskytom](https://wordpress.org/support/users/redskytom/)
 * (@redskytom)
 * [5 years ago](https://wordpress.org/support/topic/regex-does-not-work/#post-14541362)
 * Have you checked the RegEx checkbox?

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

The topic ‘Regex does not work’ 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
 * 3 participants
 * Last reply from: [redskytom](https://wordpress.org/support/users/redskytom/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/regex-does-not-work/#post-14541362)
 * Status: resolved