2011-02-02 117 views
5

我想重定向到除3个URL以外的所有HTTPS。重定向到HTTPS工作正常,但重定向规则从HTTPS到HTTP不是..这就是:tuckey urlrewritefilter https https重定向问题

<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_rewrite规则工作正常:

RewriteCond %{HTTPS} on 
RewriteRule !^(signin|bank|profile)(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [R] 

但我无法找到等效规则在tuckey urlrewrite过滤器。

这是什么可能出错?

回答

3

尝试使用“请求 - uri”检查“路径信息”的条件