【发布时间】:2019-05-23 04:59:28
【问题描述】:
我尝试让 http 自动重定向到 https。
我完全按照这些步骤操作:https://www.namecheap.com/support/knowledgebase/article.aspx/9953/38/iis-redirect-http-to-https
这是我的 web.config:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="SSL Redirect" enabled="true" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent"/>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
我在访问网站时遇到的错误是 ERR_TOO_MANY_REDIRECTS
【问题讨论】:
标签: windows iis url-rewriting