帮助中心

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

帮助中心

IIS http重定向https,强制用户使用https访问的配置方法2022/9/24 23:55:04
 

可直接修改web.config。IIS控制台右键单击需要设置的站点,选择“浏览”,编辑Web.config文件。在system.webServer之间添加以下内容:

web.config<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>





 
             

联系方式

全国热线:

0745-4651672

客服QQ: