htaccess强制https循环重定向

C 2018-2-18 6085

一般是CDN导致,可将代码改成:
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

最新回复 (1)
  • C 2018-2-18
    2
    像前几天的法国OVH免费云主机,就需要用这个强制https
返回
发新帖