找回密码
 入学
查看: 117|回复: 0

IIS添加rewrite规则实现http跳转到https

[复制链接]
发表于 2025-12-30 12:33:49 | 显示全部楼层 |阅读模式
IIS添加rewrite规则实现http跳转到https
  1.         <rule name="ssl301_rewrite" stopProcessing="true">
  2.                 <match url="(.*)"/>
  3.                 <conditions>
  4.                         <add input="{HTTPS}" pattern="^OFF$"/>
  5.                 </conditions>
  6.                 <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent"/>
  7.         </rule>
复制代码
您需要登录后才可以回帖 登录 | 入学

本版积分规则

Archiver|手机版|小黑屋|校园天空成立于2004年2月24日 ( 陕ICP备08000078号-8 )

GMT+8, 2026-7-11 01:29 , Processed in 0.040499 second(s), 18 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表