RewriteEngine OnRewriteCond %{HTTPS} !=onRewriteRule ^(.*)https://%{SERVER_NAME}/$1[R,L]<rewrite> <rules> <rule name="http redirect to https" stopProcessing="tr
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>
免责声明:本文内容由互联网用户自发贡献自行上传,本网站不拥有所有权,也不承认相关法律责任。如果您发现本社区中有涉嫌抄袭的内容,请发送邮件至:operations@xinnet.com进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。