Title: Redirection with regular expression
Last modified: October 27, 2017

---

# Redirection with regular expression

 *  [shwethashreeba](https://wordpress.org/support/users/shwethashreeba/)
 * (@shwethashreeba)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/redirection-with-regular-expression/)
 * I have a requirement of redirecting via regular expressions something like below
 * abc.com/menu/123
    abc.com/menu/xyz
 * So here the pattern is anything that goes after /menu/ we need to redirect to
   some other page. How can we regular expression here ? Tried out following
 * /menu/*
    /menu/(.*)
 * None of the above worked, is it possible to redirect for the requirement that
   we have ?

The topic ‘Redirection with regular expression’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/quick-pagepost-redirect-plugin_8d7b6f.
   svg)
 * [Quick Page/Post Redirect Plugin](https://wordpress.org/plugins/quick-pagepost-redirect-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/quick-pagepost-redirect-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/quick-pagepost-redirect-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/quick-pagepost-redirect-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/quick-pagepost-redirect-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/quick-pagepost-redirect-plugin/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [shwethashreeba](https://wordpress.org/support/users/shwethashreeba/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/redirection-with-regular-expression/)
 * Status: not resolved