Browse Source

updated htaccess

Bachir Soussi Chiadmi 8 years ago
parent
commit
8cbb5f8c4c
1 changed files with 4 additions and 0 deletions
  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