Tuckey urlrewrite,如何检查是否存在指定名称的参数?

时间:2014-09-24 12:58:24

标签: tuckey-urlrewrite-filter

似乎以下配置不起作用

<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?direct = value 结果&#39; google-analytics-uri&#39;是空的。

1 个答案:

答案 0 :(得分:1)

找到解决方案(在调试库源之后:)

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