• Resolved bof1946

    (@bof1946)


    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 to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Using wildcards worked for me. Try this:

    Request:
    aylesburyband.org/accbreh.html*

    Destination:
    aylesburyband.org/new_folder/new_page.html*

    Thread Starter bof1946

    (@bof1946)

    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.