• Resolved Pratham

    (@pratham2003)


    How do I set up a redirect to match any query string but redirect to a URL without appending the query string?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Pratham

    (@pratham2003)

    From: /some-page.*? (regex)
    To: /new-page

    This adds the query string automatically without an option to turn it off.

    The default behaviour should have been to not automatically add it.
    Adding parameters should have been done via matched regex groups e.g. $1 $2

    • This reply was modified 6 years ago by Pratham.
    Thread Starter Pratham

    (@pratham2003)

    This was resolved over github repo.

    Summary: There was some confusion related to expected outcome of regex.
    Details at: https://github.com/johngodley/redirection/issues/410#issuecomment-469999536

    Very thanks for the prompt support!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirect without query string?’ is closed to new replies.