Index: .htaccess =================================================================== RCS file: /cvs/drupal/drupal/.htaccess,v retrieving revision 1.95 diff -u -r1.95 .htaccess --- .htaccess 30 Aug 2008 13:22:14 -0000 1.95 +++ .htaccess 31 Aug 2008 12:40:47 -0000 @@ -53,21 +53,27 @@ RewriteEngine on + # To redirect all users to access the site from one or multiple + # domaine alias to another adapt and uncomment the following: + # RewriteCond %{HTTP_HOST} ^alias1\.com$ [NC] + # RewriteCond %{HTTP_HOST} ^alias2\.com$ [NC] + # RewriteRule ^(.*)$ http://www.example.com/$1 [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: # # To redirect all users to access the site WITH the 'www.' prefix, # (http://example.com/... will be redirected to http://www.example.com/...) - # adapt and uncomment the following: - # RewriteCond %{HTTP_HOST} ^example\.com$ [NC] - # RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301] + # uncomment the following: + # RewriteCond %{HTTP_HOST} !^www [NC] + # RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] # # To redirect all users to access the site WITHOUT the 'www.' prefix, # (http://www.example.com/... will be redirected to http://example.com/...) - # uncomment and adapt the following: - # RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC] - # RewriteRule ^(.*)$ http://example.com/$1 [L,R=301] + # uncomment the following: + # RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] + # RewriteRule ^(.*)$ http://%1/$1 [R=301,L] # Modify the RewriteBase if you are using Drupal in a subdirectory or in a # VirtualDocumentRoot and the rewrite rules are not working properly.