【发布时间】:2016-05-08 17:21:30
【问题描述】:
如何修改此规则以包括非 www 到 www 重定向?
<rule name="Force Https" stopProcessing="true">
<match url="healthcheck.html" negate="true" />
<conditions>
<add input="{HTTP_X_FORWARDED_PROTO}" pattern="https" negate="true" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" />
</rule>
有没有更好的方法来强制全站使用 HTTPS?我在 IIS 8.5 上使用 ASP.NET MVC 5
【问题讨论】:
标签: asp.net iis https url-rewriting