我們正在使用IIS7 URL重寫模塊asp.net C#中,所有的URL的配置和直接寫入web.config中:IIS 7 URL重寫模塊web.config部分,C#
<system.webServer>
<!-- ... -->
<rewrite>
<rules>
<clear />
<rule name="Category URL" stopProcessing="true">
<match url="somepage.aspx" ignoreCase="false"/>
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{QUERY_STRING}" pattern="REDIRECTION=true"
ignoreCase="false"/>
<add input="{QUERY_STRING}" pattern="categoryid=([^&]*)"/>
</conditions>
<action type="Redirect" url="http://{HTTP_HOST}/browsing/categorylanding.aspx?navcategoryid={C:1}"/>
</rule>
</rules>
</rewrite>
</system.webServer>
我需要移動這一個部分,這樣我可以有單獨的規則,QA,DEV和生產,這將是「類型,我會在部分界定?
<configSections>
<section name="IISURLRewriteSection" type="???"/>
</configSections>
請問IIS後自動拾取這些設置從web.config移出到另一個自定義配置文件?