From bf84ac06cdd53bb57669d897b040ac845300dcfb Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Tue, 24 Nov 2015 12:34:56 +0100 Subject: [PATCH] htaccess fixe --- .htaccess | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.htaccess b/.htaccess index 68b6ae6e..26419d1e 100755 --- a/.htaccess +++ b/.htaccess @@ -84,9 +84,9 @@ DirectoryIndex index.php index.html index.htm RewriteRule ^ http://www.materio.com%{REQUEST_URI} [L,R=301] # SSL - # RewriteCond %{HTTPS} off - # RewriteRule ^(.*)$ https://www.materio.com/$1 [L,R=301] - + RewriteCond %{HTTPS} off [OR] + RewriteCond %{HTTP_HOST} ^www.materio\.com* + RewriteRule ^(.*)$ https://materio.com/$1 [L,R=301] # If your site can be accessed both with and without the 'www.' prefix, you # can use one of the following settings to redirect users to your preferred