? rewrite-clarification-2.patch ? rewrite-clarification.patch Index: .htaccess =================================================================== RCS file: /cvs/drupal/drupal/.htaccess,v retrieving revision 1.107 diff -u -r1.107 .htaccess --- .htaccess 7 Feb 2010 05:20:21 -0000 1.107 +++ .htaccess 12 Mar 2010 18:27:06 -0000 @@ -78,18 +78,22 @@ RewriteRule "(^|/)\." - [F] # 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: + # can use one of the following rewrite rules to redirect users back to the + # same URL with the 'www.' prefix either added or removed, as you prefer. Be + # aware that this redirection will happen to ALL domain names which point to + # this Drupal installation on your server; if you only want it to happen for + # SOME domain names, this approach will not work for you. Choose ONLY ONE + # option below: # # 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: + # uncomment the following two lines: # 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/...) - # uncomment the following: + # uncomment the following two lines: # RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] # RewriteRule ^ http://%1%{REQUEST_URI} [L,R=301]