Title: Query string on URL defeats redirection
Last modified: October 30, 2019

---

# Query string on URL defeats redirection

 *  Resolved [bof1946](https://wordpress.org/support/users/bof1946/)
 * (@bof1946)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/query-string-on-url-defeats-redirection/)
 * If a query string is appended to a URL that should be redirected it doesn’t work.
   aylesburyband.org/accbreh.html should redirect to aylesburyband.org/rehearsals/,
   but add any query string (eg. aylesburyband.org/accbreh.html?x=12345) and you
   get a 404 response.
    Links from FaceBook get a query string appended, which his
   how we discovered this.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fquery-string-on-url-defeats-redirection%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [gregwxy](https://wordpress.org/support/users/gregwxy/)
 * (@gregwxy)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/query-string-on-url-defeats-redirection/#post-12154999)
 * Using wildcards worked for me. Try this:
 * Request:
    aylesburyband.org/accbreh.html*
 * Destination:
    aylesburyband.org/new_folder/new_page.html*
 *  Thread Starter [bof1946](https://wordpress.org/support/users/bof1946/)
 * (@bof1946)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/query-string-on-url-defeats-redirection/#post-12155429)
 * Thank you, I can see that would work. I was mainly raising this as a bug report,
   as it’s debatable whether a query string should be considered part of the URL
   for redirection purposes. The example of a link from Facebook would mean that
   you would have to use a wildcard on any such page that someone might link to 
   from FB.
 * It should probably be guided by the HTTP redirection spec., if it has anything
   to say about query atrings (I haven’t looked).

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

The topic ‘Query string on URL defeats redirection’ is closed to new replies.

 * ![](https://ps.w.org/simple-301-redirects/assets/icon-256x256.jpg?rev=2783827)
 * [Simple 301 Redirects By BetterLinks - Easy WordPress Redirect Manager for Redirects, 404 Error Log & More](https://wordpress.org/plugins/simple-301-redirects/)
 * [Support Threads](https://wordpress.org/support/plugin/simple-301-redirects/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-301-redirects/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-301-redirects/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-301-redirects/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [bof1946](https://wordpress.org/support/users/bof1946/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/query-string-on-url-defeats-redirection/#post-12155429)
 * Status: resolved