2011-10-26 192 views
2

我想獲得與Sitecore一起工作的IIS7 URL重寫模塊。我導入了一些規則併成功地對它們進行了測試,但是當我嘗試訪問URL時,我已經設置了重定向,而不是使用Sitecore 404頁面。所以就好像Sitecore在URL重寫模塊有機會之前攔截頁面請求一樣。Sitecore不尊重II7 URL重寫模塊

樣品規則:

<rule name="Imported Rule 1"> 
       <match url="/pastsub(.*)" ignoreCase="false" /> 
       <action type="Redirect" url="http://www.domain.net" redirectType="Found" /> 
</rule> 

關於如何解決此問題的任何想法?

回答

1

添加stopProcessing = 「真」的規則可能會解決你的問題:

<rule name="Imported Rule 1" stopProcessing="true"> 
    <match url="/pastsub(.*)" ignoreCase="false" /> 
    <action type="Redirect" url="http://www.domain.net" redirectType="Found" /> 
</rule>