From a5edc41323ca8b84d7fb781edc2b7703f61634d1 Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Tue, 24 Nov 2015 12:12:57 +0100 Subject: [PATCH] htaccess fixe --- .htaccess | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.htaccess b/.htaccess index 39ee668d..6df46494 100755 --- a/.htaccess +++ b/.htaccess @@ -71,7 +71,8 @@ DirectoryIndex index.php index.html index.htm # downloaded. RewriteRule "(^|/)\." - [F] -# custom +# redirect all materiau domains to materio.com + RewriteCond %{HTTPS} off RewriteCond %{HTTP_HOST} ^basebeta\.materio\.com [OR] RewriteCond %{HTTP_HOST} ^materio\.com [OR] RewriteCond %{HTTP_HOST} ^www\.materio\.fr [OR] @@ -83,6 +84,8 @@ DirectoryIndex index.php index.html index.htm RewriteRule ^ http://www.materio.com%{REQUEST_URI} [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 # URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option: