URLRewrite在IIS6和IIS7中的使用配置
作者 : yang 日期 : 2010-02-08
之前使用Microsoft URLRewrite在IIS6中一切正常,但是在IIS7却不能正常使用,提示“无法找到资源”,这时需要在web.config中system.webServer节点中的handlers节点进行配置,如下:
如果在IIS7中使用,需在web.config中加入:
<configuration>
......
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add type="URLRewriter.ModuleRewriter, URLRewriter" name="ModuleRewriter" />
</modules>
<system.webServer>
......
</configuration>
加入以上代码后,URLRewrite就可以同时在IIS6和IIS7中正常使用了。
文章来自: 互联网