如下所示:
<location path="." allowOverride="true" inheritInChildApplications="false">
    <system.web>
        <httpModules>
        <add name="UrlRewriteModule" type="UrlRewritingNetUrlRewriter" />
    </httpModules>
    </system.web>
</location>
在上级的webconfig的system.web节点上套一层<location path="." allowOverride="true" inheritInChildApplications="false">配置

path 不用说指定的是一个目录
allowOverride 指是否可以将这个重写
inheritInChildApplications 指是否被子级应用程序继承

相关文章:

  • 2021-07-07
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
  • 2022-12-23
猜你喜欢
  • 2021-06-16
  • 2022-02-12
  • 2022-12-23
  • 2021-12-02
  • 2021-09-19
  • 2021-10-03
相关资源
相似解决方案