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的作用是什么?加大推广网站优化力度能让企业能够从中获益吗?网站域名与云服务器中小型企业网络构建之路由的简单配置