【发布时间】:2018-01-12 11:22:06
【问题描述】:
我有以下重定向规则,它将所有 http 请求重定向到 https。
<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>
我希望这条规则也将所有www 流量重定向到non www https。
应用程序部署到负载平衡的 EBS 环境中。
如果需要任何其他信息,请告诉我。感谢您的宝贵时间。
【问题讨论】:
标签: .net redirect iis web-config amazon-elastic-beanstalk