Articles on: Sprwt Supprt
Can I redirect a whole group of old URLs with a wildcard?
Yes – switch on Regular expression. The source is then a pattern matched against the whole path and the target can reuse captured parts with $1, $2…:
- /promo/(.*) → /pages/$1 sends /promo/summer to /pages/summer.
- /old-blog/(.*) → /blog/$1 maps an old blog structure onto the new one.
- /catalog/.* → /pages/menu sends every old catalogue link to one page.
Exact (non-regex) rules always win over patterns; when several patterns could match, they're tried in the order they were created. An invalid pattern is refused on save ("Source pattern is not a valid regular expression"). The site prefix is hidden while the regex toggle is on because the pattern must include the leading slash itself.
Where to find it:
/admin/redirects/0