Title: Query String
Last modified: August 30, 2016

---

# Query String

 *  Resolved [steveburkie82](https://wordpress.org/support/users/steveburkie82/)
 * (@steveburkie82)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/query-string-1/)
 * Hi,
 * I am trying to redirect from a URL with a query string in the URL but I can’t
   seem to get it to work:
 * URL: [http://www.example.com/default.aspx?QS=5](http://www.example.com/default.aspx?QS=5)
   
   Target URL: [http://www.example.com/?QS=5](http://www.example.com/?QS=5)
 * I am moving my site from a asp .net to a WordPress site but until all my customers
   are updated they will be referencing the old default.aspx page.
 * Any assistance would be greatly appreciated.
 * Steve.
 * [https://wordpress.org/plugins/redirection/](https://wordpress.org/plugins/redirection/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Gabe462](https://wordpress.org/support/users/gabe462/)
 * (@gabe462)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/query-string-1/#post-6464141)
 * Try this
 * source:
    \/default\.aspx(.*) [click regex]
 * target:
    [http://www.example.com/$1](http://www.example.com/$1)
 * See this tested on regex101.com
    [https://regex101.com/r/sP0sD6/1](https://regex101.com/r/sP0sD6/1)
 *  Thread Starter [steveburkie82](https://wordpress.org/support/users/steveburkie82/)
 * (@steveburkie82)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/query-string-1/#post-6464150)
 * You are awesome.
    Thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)

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

## Tags

 * [Query String](https://wordpress.org/support/topic-tag/query-string/)
 * [redirect](https://wordpress.org/support/topic-tag/redirect/)

 * 2 replies
 * 2 participants
 * Last reply from: [steveburkie82](https://wordpress.org/support/users/steveburkie82/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/query-string-1/#post-6464150)
 * Status: resolved