宝塔bt网站环境在WIN系统中强制开启HTTPS/SSL跳转的方法

2018-02-0105:21:07服务器及运维Comments2,957 views字数 396阅读模式

在网站设置中,“配置文件”配置一下就行了文章源自菜鸟学院-https://www.cainiaoxueyuan.com/yunwei/204.html

宝塔bt网站环境在WIN系统中强制开启HTTPS/SSL跳转的方法文章源自菜鸟学院-https://www.cainiaoxueyuan.com/yunwei/204.html

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="HTTP to HTTPS redirect" stopProcessing="true">
<match url="(.*)" ></match>
<conditions>
<add input="{HTTPS}" pattern="^OFF$" ></add>
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" ></action>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/yunwei/204.html

  • 本站内容整理自互联网,仅提供信息存储空间服务,以方便学习之用。如对文章、图片、字体等版权有疑问,请在下方留言,管理员看到后,将第一时间进行处理。
  • 转载请务必保留本文链接:https://www.cainiaoxueyuan.com/yunwei/204.html

Comment

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定