Title: Redirect URL with query string
Last modified: August 30, 2016

---

# Redirect URL with query string

 *  [clane_workforce](https://wordpress.org/support/users/clane_workforce/)
 * (@clane_workforce)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/redirect-url-with-query-string/)
 * I need the correct regex to redirect a language query string URL to a directory
   URL. I want any of the path leading up to this query string included for example:
 * /page/subpage/subpage/?lang=fr
 * to
 * /fr
 * I’ve tried several combinations, any help is appreciated:)
 * [https://wordpress.org/plugins/redirection/](https://wordpress.org/plugins/redirection/)

 The topic ‘Redirect URL with query string’ 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: [clane_workforce](https://wordpress.org/support/users/clane_workforce/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/redirect-url-with-query-string/)
 * Status: not resolved