Title: Simple Regex not working
Last modified: September 3, 2018

---

# Simple Regex not working

 *  Resolved [Carl M.](https://wordpress.org/support/users/ccmanz/)
 * (@ccmanz)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/simple-regex-not-working/)
 * What i want to achieve is to change siteurl/olddirectory/someurl to siteurl/newdirectory/
   someurl
 * I thought that the source url should he /olddirectory/(.*) and source url be /
   newdirectory/$1
 * But it always returns a 404.
 * Any thoughts on this?

Viewing 1 replies (of 1 total)

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/simple-regex-not-working/#post-10656196)
 * Have you enabled the regex checkbox?

Viewing 1 replies (of 1 total)

The topic ‘Simple Regex not working’ 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/)

## Tags

 * [regex](https://wordpress.org/support/topic-tag/regex/)

 * 1 reply
 * 2 participants
 * Last reply from: [John Godley](https://wordpress.org/support/users/johnny5/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/simple-regex-not-working/#post-10656196)
 * Status: resolved