iis-7 - 在每个站点的基础上禁用 IIS7 URL 重写继承?

标签 iis-7 url-rewriting

我有许多全局 IIS7 URL 重写规则,默认情况下它们适用于所有站点。好吧,有几个站点我想禁用所有规则的重写继承。我怎样才能做到这一点?我没有高兴地尝试了以下操作:

 <rewrite>
<rules>
    <clear />
</rules>
  </rewrite>

最佳答案

对不起,这是不可能的:

Global rewrite rules are used to define server-wide URL rewriting logic. These rules are defined within applicationHost.config file and they cannot be overridden or disabled on any lower configuration levels, such as site or virtual directory. Global rules always operate on the absolute URL path (that is, requested URI without the server name).





Global rule set is always evaluated first, and after that distributed rule set will be evaluated by using a URL string produced by global rule set.



http://learn.iis.net/page.aspx/468/using-global-and-distributed-rewrite-rules/

关于iis-7 - 在每个站点的基础上禁用 IIS7 URL 重写继承?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6945954/

相关文章:

ASP.NET Web Garden - 我需要多少个工作进程?

c# - 从 IIS 请求中获取原始套接字

url-rewriting - 您如何使用 Cheyenne 从静态 HTML 文件的 URL 中抑制 .html?

asp.net - IIS 7.0删除子目录时如何防止AppDomain回收?

iis-7 - IIS_IUSRS 网站的身份

.net - 如何使用Powershell和Web管理提供程序导出IIS7站点和应用程序池设置?

linux - Nginx url重写错误: [emerg] unexpected "}"

.htaccess - 如果存在干净的 url 文件,则使用 modrewrite 进行重写

缓存的 IIS URL 重写规则

regex - IIS Url 重写 : Add Trailing Slash, 保留 anchor 和查询字符串