【发布时间】:2011-09-15 14:01:27
【问题描述】:
我将我的应用程序切换到 https。我添加了 system.webServer 重写规则
<rule name="HTTP to HTTPS redirect" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
</rule>
在我的 web.config 中
它将http://mydomain.com 重写为https://mydomain.com,这很好。
Bot 如何使其也将http://www.mydomain.com 重写为https://mydomain.com(不带www)
【问题讨论】:
标签: iis iis-7 url-rewriting