How could I modify
RedirectMatch ^/?folder/(.*) https://elsewhere.com/abc.php?var=1\&d=$1
to add an exception, so that if the address is folder/printer then it does not redirect, but everything else does?
RewriteEngine On
RewriteRule !^/?folder/printer/
above (!) your RedirectMatch
should do the trick.
Also, have a look at this post
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.