鲨海云10年品质服务,专注提供香港、美国的免备案虚拟主机和服务器产品!
资讯与帮助
返回资讯

IIS访问http301重定向到https的方法

信息来源:鲨海云    修改时间:2017/8/25
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <rewrite>
      <rules>
        <rule name="HTTP to HTTPS redirect" stopProcessing="true">
          <match url="(.*)" />
          <conditions>
            <add input="{HTTPS}" pattern="off" ignoreCase="true" />
          </conditions>
          <action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}" />
        </rule>
      </rules>
    </rewrite>
  </system.webServer>
</configuration>
  • 服务热线400-926-0677
    • 全方位的购买咨询
    • 精准的配置推荐
    • 1对1贴心服务
    • 7*24小时服务热线
  • 投诉建议
    • 购买咨询、建议或投诉,1个工作日响应