10秒后自动关闭
主机大师设置http自动跳转https的方法

使用IIS自带的URLrewrite功能,在需要设置强制跳转的网站根目录下,新建一个文件命名为web.config,使用记事本打开编辑。

添加如下代码后保存:

<?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="Found" url="https://{HTTP_HOST}/{R:1}" />
       </rule>
     </rules>
   </rewrite>
 </system.webServer>
</configuration>


用户留言
游客[39.129.*.*](2020-6-11 17:25:17)
你好,请问使用了阿帕奇大师的怎么设置http跳转https
[2020-6-11 18:10:05]请参考:https://www.hws.com/help/apachemaster/1829.html