소스 검색

htaccess again …

Signed-off-by: bachy <git@g-u-i.net>
bachy 11 년 전
부모
커밋
8e432ea544
1개의 변경된 파일11개의 추가작업 그리고 10개의 파일을 삭제
  1. 11 10
      .htaccess

+ 11 - 10
.htaccess

@@ -71,6 +71,17 @@ DirectoryIndex index.php index.html index.htm
   # downloaded.
   # downloaded.
   RewriteRule "(^|/)\." - [F]
   RewriteRule "(^|/)\." - [F]
 
 
+# custom
+  RewriteCond %{HTTP_HOST} ^basebeta\.materio\.com [OR]
+  RewriteCond %{HTTP_HOST} ^www\.materio\.fr [OR]
+  RewriteCond %{HTTP_HOST} ^materio\.fr [OR]
+  RewriteCond %{HTTP_HOST} ^www\.materio\.net [OR]
+  RewriteCond %{HTTP_HOST} ^materio\.net [OR]
+  RewriteCond %{HTTP_HOST} ^www\.materio\.eu [OR]
+  RewriteCond %{HTTP_HOST} ^materio\.eu [OR]
+  RewriteRule ^ http://www.materio.com%{REQUEST_URI} [L,R=301]
+
+
   # If your site can be accessed both with and without the 'www.' prefix, you
   # 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
   # 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:
   # URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
@@ -87,16 +98,6 @@ DirectoryIndex index.php index.html index.htm
   # RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
   # RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
   # RewriteRule ^ http://%1%{REQUEST_URI} [L,R=301]
   # RewriteRule ^ http://%1%{REQUEST_URI} [L,R=301]
 
 
-  # custom
-  # RewriteCond %{HTTP_HOST} !^basebeta\.materio\.com [NC]
-  # RewriteCond %{HTTP_HOST} !^www\.materio\.fr [NC]
-  # RewriteCond %{HTTP_HOST} !^materio\.fr [NC]
-  # RewriteCond %{HTTP_HOST} !^www\.materio\.net [NC]
-  # RewriteCond %{HTTP_HOST} !^.materio\.net [NC]
-  # RewriteCond %{HTTP_HOST} !^www\.materio\.eu [NC]
-  # RewriteCond %{HTTP_HOST} !^.materio\.eu [NC]
-  # RewriteRule ^ http://www.materio.com%{REQUEST_URI} [L,R=301]
-
   # Modify the RewriteBase if you are using Drupal in a subdirectory or in a
   # Modify the RewriteBase if you are using Drupal in a subdirectory or in a
   # VirtualDocumentRoot and the rewrite rules are not working properly.
   # VirtualDocumentRoot and the rewrite rules are not working properly.
   # For example if your site is at http://example.com/drupal uncomment and
   # For example if your site is at http://example.com/drupal uncomment and