From 8cbb5f8c4c4c618707f68f5580963f412befc5e5 Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Wed, 2 Dec 2015 16:45:51 +0100 Subject: [PATCH] updated htaccess --- .htaccess | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.htaccess b/.htaccess index 9178be73..997345df 100755 --- a/.htaccess +++ b/.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