虚拟主机Web.config 301 设置http跳转https

发布时间:2024-06-10 点击:104
rewriteengine on
rewritecond %{https} !=on
rewriterule ^(.*)https://%{server_name}/$1[r,l]
<rewrite>
<rules>
<rule name=\”http redirect to https\” stopprocessing=\”true\”>
<match url=\”(.*)\” />
<conditions>
<add input=\”{https}\” pattern=\”^off$\” />
<add input=\”{https_host}\” pattern=\”^(localhost)\” negate=\”true\” />
</conditions>
<action type=\”redirect\” url=\”https://{http_host}/{r:1}\” />
</rule>
</rules>
</rewrite>

腾讯云服务器备案详细讲解
战网怎么更改登录密码 战网修改密码方法
怎样注销备案-备案平台
mhdd硬盘的检测方法是什么 mhdd硬盘的检验教程
dhcp snooping的作用是什么?
加大推广网站优化力度能让企业能够从中获益吗?
网站域名与云服务器
中小型企业网络构建之路由的简单配置