Browse Source

htaccess rewrite url bug fix

Signed-off-by: bachy <git@g-u-i.net>
bachy 11 years ago
parent
commit
662012976d
1 changed files with 9 additions and 3 deletions
  1. 9 3
      .htaccess

+ 9 - 3
.htaccess

@@ -88,9 +88,15 @@ DirectoryIndex index.php index.html index.htm
   # RewriteRule ^ http://%1%{REQUEST_URI} [L,R=301]
 
   # custom
-  RewriteCond %{HTTP_HOST} !^basebeta\. [NC]
-  RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
-  
+  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
   # VirtualDocumentRoot and the rewrite rules are not working properly.
   # For example if your site is at http://example.com/drupal uncomment and