Can a wildcard be used when setting a redirect e.g. for ?


Most helpful answers

This is not supported by redirect in Backdrop. You have to do it at server level. The same question arose in Drupal:


Thanks for the definitive answer, though I find it a bit disappointing that redirect will not do this. I have had a look at the reference and also the module match_redirect but unfortunately its limitation to redirect to a single path does not meet my need. So I am using redirects in the site's .htaccess file, like this

# Nodes and files moved to
RewriteRule ^/?bookreviews/(.*)$$1 [R=301,L]
RewriteRule ^/?files/audio/(.*)$$1 [R=301,L]

'bookreviews' is actually a view (page) on the original site, now superseded by a similar view 'review' on the new site. The wildcard is the NID for each book review content.