访问域以根入web.config的规则

问题描述

应在web.config中提供规则:

domain.com 可以访问该根目录。因此,如果 domain1.com 请求,我应该避免访问。

<rules>
<rule name="check access" stopProcessing="true">
<match url="www.domain.com/{R:0}" ignoreCase="false" />
<conditions logicalGrouping="MatchAny">
<add 
</conditions>
<action type="Redirect" redirectType="Permanent" url="www.domain.com/NotAccess" />
</rule>
</rules>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)