帮助中心

如果没有找到你需要的问题,随时联系我们

帮助中心

http强制重定向到https2025/5/22 16:25:19
 

在网站根目录下建立web.config 文件,文件内容如下 

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules> 
<rule name="http redirect to https" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" /></conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" />
</rule>
</rules> 
</rewrite> 
</system.webServer>
</configuration>

即可实现每次用户只要在浏览器打开www.abc.com 即自动跳转到https://www.abc.com





 
             

联系方式

全国热线:

0745-4651672

客服QQ: