gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 20:20:40 26 4
gpt4 key购买 nike

我有许多全局 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com