Преглед на файлове

htaccess rewrite url bug fix

Signed-off-by: bachy <git@g-u-i.net>
bachy преди 11 години
родител
ревизия
662012976d
променени са 1 файла, в които са добавени 9 реда и са изтрити 3 реда
  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