Title: Redirection with regex
Last modified: August 31, 2016

---

# Redirection with regex

 *  [dougdo](https://wordpress.org/support/users/dougdo/)
 * (@dougdo)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/redirection-with-regex/)
 * Hi, I’m not sure I understand how the regex functionality works on this. Can 
   I use the result of the regex in the destination url?
 * For example, I’d like to do the following redirection:
 * FROM /page.htm?af=sometext
    TO /content/stuff/?af=sometext
 * How would I enter this in the redirection plugin?
 * [https://wordpress.org/plugins/redirection/](https://wordpress.org/plugins/redirection/)

The topic ‘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/)

## Tags

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

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