ソースを参照

htaccess fixe

Bachir Soussi Chiadmi 8 年 前
コミット
a5edc41323
1 ファイル変更4 行追加1 行削除
  1. 4 1
      .htaccess

+ 4 - 1
.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: