2015-04-01 22 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,其餘的將不匹配,因此不會他處理。

相關問題