其实这个问题解决起来很简单,只将 httphandler httpmodule的声明添加到location中即可。
如下所示:
<location path="." allowOverride="true" inheritInChildApplications="false">
<system.web>
<httpModules>
<add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />
</httpModules>
</system.web>
</location>
path 不用说指定的是一个目录 allowOverride 指是否可以将这个重写 inheritInChildApplications 指是否被子级应用程序继承