From cc526dd563330be97664e2acaa183901b4bb02f8 Mon Sep 17 00:00:00 2001 From: bachy Date: Wed, 13 Feb 2013 12:33:43 +0100 Subject: [PATCH] htaccess redirecte basebeta to www Signed-off-by: bachy --- .htaccess | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.htaccess b/.htaccess index 217bc528..e16822e8 100644 --- a/.htaccess +++ b/.htaccess @@ -78,8 +78,8 @@ DirectoryIndex index.php index.html index.htm # To redirect all users to access the site WITH the 'www.' prefix, # (http://example.com/... will be redirected to http://www.example.com/...) # uncomment the following: - # RewriteCond %{HTTP_HOST} !^www\. [NC] - # RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] + RewriteCond %{HTTP_HOST} !^www\. [NC] + RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # # To redirect all users to access the site WITHOUT the 'www.' prefix, # (http://www.example.com/... will be redirected to http://example.com/...) @@ -87,6 +87,10 @@ 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\. [NC] + RewriteRule ^ http://www.%{HTTP_HOST}%{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