I need to redirect old URLs that have parameters like


I thought I could use the urls redirect module to indicate a url with a replacement character but that doesn't work. If I redirect /my-page?page=1 to /new-page it works but I would have liked to make a source url that works in all cases.

I tested for example :


And it doesn't work. Do you know if this is possible?

  • Did you try /my-page? See also drupal.org/project/redirect/issues/3352116 and drupal.org/project/redirect/issues/3295924
    – mona lisa
    Commented Jan 15 at 13:59
  • @cilefen In this case, the redirect module removes the character ? I also uncheck option: Retain query string through redirect to not have the query in the destination url. Redirect module consider that my-page and my-page? are the same. Commented Jan 15 at 14:08
  • Some years ago I used drupal.org/project/regex_redirect for a large migration, converting query params to node IDs. The module seems to be unmaintained though, can't see a recent D10 version :-( But there is a dev branch with D10 support, don't know the status of that.
    – Hudri
    Commented Jan 15 at 14:47
  • @SébastienGicquel I thought that is what you want. Perhaps the Question needs more information.
    – mona lisa
    Commented Jan 15 at 15:04


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.