Pārlūkot izejas kodu

updated htaccess

Bachir Soussi Chiadmi 8 gadi atpakaļ
vecāks
revīzija
8cbb5f8c4c
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  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