Login
网站首页 > 文章中心 > 其它

IIS7web.config设置跳转HTTPS伪静态代码

作者:小编 更新时间:2023-06-15 11:27:46 浏览量:124人看过

IIS7web.config设置跳转HTTPS伪静态代码

软件介绍:

<?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> 


版权声明:倡导尊重与保护知识产权,本站有部分资源、图片来源于网络,如有侵权,请联系我们修改或者删除处理。
转载请说明来源于"土嘎嘎" 本文地址:http://www.tugaga.com/jishu/other/347.html
<<上一篇 2023-06-14
下一篇 >> 2023-06-15

相关推荐

编辑推荐

热门文章