From 662012976d8ee079b14da766d07aa11c1a7d4e6e Mon Sep 17 00:00:00 2001 From: bachy Date: Wed, 13 Feb 2013 12:39:17 +0100 Subject: [PATCH] htaccess rewrite url bug fix Signed-off-by: bachy --- .htaccess | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.htaccess b/.htaccess index e16822e8..7e090a0e 100644 --- a/.htaccess +++ b/.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