网站整站301跳转到https的方法:在网站根目录修改WEB.config的配置文件,例如:<?xml version="1.0" encoding="UTF-8"?>
网站整站301跳转到https的方法:
在网站根目录修改WEB.config的配置文件,例如:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="301" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny">
<add input="{Http_HOST}" pattern="^abc\.cn$" />
</conditions>
<action type="Redirect" url="https://www.abc.cn/{R:0}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
--结束END--
本文标题: 网站如何整站301跳转到https
本文链接: https://www.lsjlt.com/news/115583.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-02
2024-05-02
2024-05-02
2024-05-02
2024-05-02
2024-05-02
2024-05-02
2024-05-02
2024-05-02
2024-05-02
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0