Mod rewrite 重定向部门,但从重定向中排除一页

Mod rewrite 重定向部门,但从重定向中排除一页,mod-rewrite,redirect,url-rewriting,Mod Rewrite,Redirect,Url Rewriting,我有以下规则将所有页面(php和php3页面除外)从信息部门重定向到我们托管的新服务器或新网站: RedirectMatch ^/info/(?!.*php3?)(.*) http://www2.example.com/info/$1 我需要排除页面http://www2.example.com/info/test.shtml从上述规则中删除,这样它就不会重定向到我们的新站点,页面也会从旧站点显示出来-有人能帮忙吗?试试看 #redirect if does not end with php/

我有以下规则将所有页面(php和php3页面除外)从信息部门重定向到我们托管的新服务器或新网站:

RedirectMatch ^/info/(?!.*php3?)(.*) http://www2.example.com/info/$1
我需要排除页面
http://www2.example.com/info/test.shtml
从上述规则中删除,这样它就不会重定向到我们的新站点,页面也会从旧站点显示出来-有人能帮忙吗?

试试看

#redirect if does not end with php/3 or is not test.shtml
RedirectMatch ^/info/(?!(.*php3?|test\.shtml))(.*) http://www2.example.com/info/$1

谢谢你的帮助