在我们的web.config文件中,我们控制着6个不同的国际域名。
我们如何使用1个规则完成以下操作:
重定向
- www.1of6Domains.com/index.htm - www.1of6Domains.com/index.html - www.1of6Domains.com/default.asp - www.1of6Domains.com/default.aspx
到
- www.1of6Domains.com
类似于这样的操作?
我们如何使用1个规则完成以下操作:
重定向
- www.1of6Domains.com/index.htm - www.1of6Domains.com/index.html - www.1of6Domains.com/default.asp - www.1of6Domains.com/default.aspx
到
- www.1of6Domains.com
类似于这样的操作?
<rule name="Canonical Redirect" enabled="true" stopProcessing="true">
<match url="(.*)/(index.html|index.htm|default.asp|default.aspx)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{R:1}" />
</rule>