URLRewrite在IIS6和IIS7中的使用配置

之前使用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中正常使用了。

文章来自: 互联网
评论: 0 | 人气: 128
给站长留言
昵 称: [ 留言内容保密,限站长查看,字数限制 1000 字 ]
内 容:
验证码: 验证码