【发布时间】:2014-05-10 21:44:03
【问题描述】:
我有一个有效的 RedirectRule,我想向其中添加一个例外。这是当前的 RedirectRule:
RedirectMatch (?i)/.+menu\.html$ http://www.foobar.com/foobar.html
我想将 ext3270-Menu.html 排除在此规则之外。
我在https://serverfault.com/questions/189666/make-exception-to-whole-site-redirectmatch-rule找到了以下示例:
RedirectMatch permanent ^/?((?!(thisisfoo|thisisbar)).*) https://www.foobar.com/$1
我希望在 PCRE 中比我更熟练的人可以提供符合我要求的类似内容。
谢谢
【问题讨论】:
标签: regex apache redirect http-redirect