我知道了!感谢 Altaf Khatri 的这篇文章http://www.altafkhatri.com/Technical/Configure/How-to-publish-or-host-subdomain-on-winhostcom/Solution-resolution我能够一步一步地跟随他在 WinHost 上设置子域的步骤说明,然后我将此规则添加到 web.config 文件中:
<rule name="archive redirect" enabled="true" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTP_HOST}" pattern="^www\.archives\.cancunandrivieramaya\.com$" />
</conditions>
<action type="Redirect" url="http://www.cancunandrivieramaya.com/" />
</rule>
<rule name="archives 2" enabled="true" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTP_HOST}" pattern="^(www\.)?archives\.cancunandrivieramaya\.com$" />
<add input="{PATH_INFO}" pattern="^/archives/($|/)" negate="true" />
</conditions>
<action type="Redirect" url="http://www.cancunandrivieramaya.com/" />
</rule>
完美运行!