Title: Add redirection with regex
Last modified: August 22, 2016

---

# Add redirection with regex

 *  [Mahmud Hasan](https://wordpress.org/support/users/born2winbd/)
 * (@born2winbd)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/add-redirection-with-regex/)
 * Hi, I want to add a redirection where the plug-in will search for a substring
   in the url and if exists, it will redirect to the url removing that substring.
   For example, if the requested url is [http://mysite.com/test-url-copy](http://mysite.com/test-url-copy)
   and I want to remove the substring ‘-copy’ then it will automatically redirect
   to [http://mysite.com/test-url](http://mysite.com/test-url). How can I add this
   to the Redirection plug-in with regex?
 * [https://wordpress.org/plugins/redirection/](https://wordpress.org/plugins/redirection/)

The topic ‘Add redirection with regex’ 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [Mahmud Hasan](https://wordpress.org/support/users/born2winbd/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/add-redirection-with-regex/)
 * Status: not resolved