ソースを参照

updated htaccess

Bachir Soussi Chiadmi 8 年 前
コミット
8cbb5f8c4c
1 ファイル変更4 行追加0 行削除
  1. 4 0
      .htaccess

+ 4 - 0
.htaccess

@@ -66,6 +66,10 @@ DirectoryIndex index.php index.html index.htm
   # RewriteCond %{HTTP:X-Forwarded-Proto} !https
   # RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 
+  RewriteCond %{HTTPS} off
+  RewriteCond %{HTTP:X-Forwarded-Proto} !https
+  RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
+
   # CUSTOMS
   # redirect all materiau domains to materio.com
   # RewriteCond %{HTTPS} off