Request

URL Redirects to support wildcard (*)

  • General

A helpful feature of URL Redirects would be to allow the use of an asterisk wildcard (*) for cases where bulk URL redirects are needed and where unknown or otherwise unsupported paths need to be redirected.

As a simple example, you may have a large directory of pages, or a module that’s base URL needs to be changed, and so you want to configure URL Redirects from all the old paths to the new:

Old paths:

https://yoursite.com/directory/item1
https://yoursite.com/directory/item2
https://yoursite.com/directory/item3
...

New paths:

https://yoursite.com/new/item1
https://yoursite.com/new/item2
https://yoursite.com/new/item3
...
...
...

Instead of needing to set up all individual redirects like this:

https://yoursite.com/directory/item1  -->  https://yoursite.com/new/item1
https://yoursite.com/directory/item2  -->  https://yoursite.com/new/item2
https://yoursite.com/directory/item3  -->  https://yoursite.com/new/item3
...
...
...

We could just use a wildcard like this:

https://yoursite.com/directory/*  -->  https://yoursite.com/new/*

I don’t think we need more complex rules or regex expressions, etc. to cover the majority of use-cases, but open to other’s thoughts and suggestions here.