6
在我們的web.config文件中,我們控制了6個不同的國際域。IIS 7多域名主頁Canonical Redirect
我們如何做到與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>
會有使用相同的規則,所以這將需要努力同它們全部6個不同的領域。 – Brent