Support » Plugin: Redirection » Possible to redirect URLs with Querystrings?

  • I imported a set of URLs and their new equivalents today. There were two “old urls” that were like this:

    /?page_id=11
    /?page_id=7

    I tried setting them up to redirect to their associated new URL, but it didn’t work. They ended up redirecting to the new URL with “/?” in front of the URL. So, like this:

    /?/participant/forms/
    /?/contact/

    And then, I think because of this, I started getting a lot of other weirdness with other URLs. I cannot figure out the pattern, but some of the URLs would just start redirecting to something like this:

    /participant/participant/participant/participant/participant/participant/participant/participant/participant/participant/participant/participant/participant/participant/

    As I didn’t have any redirects actually with /participant/ other than these querystring ones, it made me wonder if they were related somehow. When I disabled them, the other non-querystring redirects started working correctly.

    Anyone know what’s going on here? Are querystring URLs not allowed or is there a special way you must do them?

Viewing 2 replies - 1 through 2 (of 2 total)
  • For the first problem it seems that you have regex enabled. If you don’t need regular expressions in your redirect, uncheck the ‘regex’ checkbox. If you do need them, escape the ? like

    /\?page_id=11

    edit: I think the second problem should be resolved as well, if you turned regex off.

    • This reply was modified 1 year, 11 months ago by  Alex Goller. Reason: added more info
    • This reply was modified 1 year, 11 months ago by  Alex Goller.

    Thanks for the response.

    I did actually uncheck the regex box, but it did not seem to change anything afterwards.

    BTW, I also posted this topic — https://wordpress.org/support/topic/upload-redirects-no-regex/#post-8194445 I think something weird is going on with the regex stuff.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Possible to redirect URLs with Querystrings?’ is closed to new replies.