https到http重定向的java tuckey URL重写筛选器问题
除了3个URL之外,我想重定向到HTTPS。重定向到HTTPS工作正常,但从HTTPS到HTTP的重定向规则不正常。。这是:
<rule>
<condition type="scheme" operator="equal">^https$</condition>
<from>!/(signin|bank|profile)</from>
<to type="permanent-redirect" last="true">http://%{server-name}%{request-uri}</to>
</rule>
我还试图提出这个不起作用的条件:
<condition type="path-info" operator="notequal">/(signin|bank|profile)</condition>
它过去可以很好地使用这个mod_重写规则:
RewriteCond %{HTTPS} on
RewriteRule !^(signin|bank|profile)(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [R]
但我无法在tuckey urlrewrite筛选器中找到等效规则
什么是可能出错的
# 1 楼答案
尝试使用“请求uri”代替“路径信息”的条件