站内搜索
最近浏览
- Windows IIS7/8...
- 分析器错误消息: 无法识别的...
- C++中读取图片长度和宽度
- Linux中出现libc.s...
- VB API 重启服务,停止...
- Notice: Undefi...
- linkd.exe目录映射工...
- 全面保护你的Java程序安全...
- 您正尝试从不属于“受信任的站...
- huweishen 错误 '...
- Windows Server...
- 处理程序“FastCGI”在...
- 读取配置数据时遇到错误“未能...
- 网站被入侵后需做的检测
- 处理程序“AboMapper...
推荐文章
热文排行
Windows IIS7/8 服务器通过web.config 使http默认强制跳转到https
<?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$" /> <add input="{HTTP_HOST}" pattern="^(localhost)" negate="true" /> </conditions> <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" /> </rule> </rules> </rewrite> </system.webServer> </configuration>
Windows IIS7/8 服务器通过web.config 使http默认强制跳转到https
[ly70041]
添加时间:2019-11-28