2014-09-24 39 views
0

似乎以下配置不起作用Tuckey urlrewrite,如何检查是否存在指定名称的参数?

<rule> 
    <condition type="parameter" name="direct" operator="notequal"></condition> 
    <from>^/payment.html$</from> 
    <set name="google-analytics-uri">/shop/payment-direct</set> 
</rule> 

输入网址:_http://somesite.com/payment.html直接=值 作为结果 '谷歌分析-URI' 是空的。

回答

1

发现溶液(后调试库源:)

<rule> 
    <condition type="parameter" name="direct" operator="notequal">^$</condition> 
    <from>^/payment.html$</from> 
    <set name="google-analytics-uri">/shop/payment-direct</set> 
</rule>