소스 검색

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