From 3027b3985bded7d10e810b4bea8d0fe8daf60f4d Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Tue, 24 Nov 2015 12:55:09 +0100 Subject: [PATCH] htaccess fixe --- .htaccess | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.htaccess b/.htaccess index dc9c3180..9f800a51 100755 --- a/.htaccess +++ b/.htaccess @@ -56,6 +56,14 @@ DirectoryIndex index.php index.html index.htm RewriteEngine on + # SSL + # RewriteCond %{HTTPS} off [OR] + # RewriteCond %{HTTP_HOST} ^www.materio\.com* + # RewriteRule ^(.*)$ https://materio.com/$1 [L,R=301] + + RewriteCond %{HTTPS} off + RewriteRule ^(.*)$ https://www.materio.com/$1 [L,R=301] + # Set "protossl" to "s" if we were accessed via https://. This is used later # if you enable "www." stripping or enforcement, in order to ensure that # you don't bounce between http and https. @@ -129,11 +137,6 @@ DirectoryIndex index.php index.html index.htm # RewriteCond %{HTTP_HOST} ^materio\.eu # RewriteRule ^ http://www.materio.com%{REQUEST_URI} [L,R=301] - # SSL - # RewriteCond %{HTTPS} off [OR] - # RewriteCond %{HTTP_HOST} ^materio\.com* - # RewriteRule ^(.*)$ https://www.materio.com/$1 [L,R=301] - # Rules to correctly serve gzip compressed CSS and JS files. # Requires both mod_rewrite and mod_headers to be enabled.