diff --git a/.htaccess b/.htaccess index 60306756..dbbf9f31 100644 --- a/.htaccess +++ b/.htaccess @@ -71,6 +71,17 @@ DirectoryIndex index.php index.html index.htm # downloaded. 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 # 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: @@ -87,16 +98,6 @@ DirectoryIndex index.php index.html index.htm # RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] # 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 # VirtualDocumentRoot and the rewrite rules are not working properly. # For example if your site is at http://example.com/drupal uncomment and