2015-04-01 51 views

回答

1

只要定义你的<from>元素你正则表达式路径的显式结束。

例如

<urlrewrite> 

    <rule match-type="regex"> 
     <condition type="method">GET</condition> 
     <from>^/abc$</from> 
     <to type="redirect">/xyz.html</to> 
    </rule> 

</urlrewrite> 

因此,这将重定向只/abc(井也/abc/)到目标/xyz.html URL,其余的将不匹配,因此不会他处理。

相关问题