--- boosted.txt 2006-11-25 03:19:50.000000000 +0300 +++ boosted-work.txt 2006-12-05 13:15:52.029710026 +0300 @@ -55,11 +55,11 @@ # you can use one of the following settings to force user to use only one option: # # If you want the site to be accessed WITH the www. only, adapt and uncomment the following: - # RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC] + # RewriteCond %{SERVER_NAME} !^www\.example\.com$ [NC] # RewriteRule .* http://www.example.com/ [L,R=301] # # If you want the site to be accessed only WITHOUT the www. , adapt and uncomment the following: - # RewriteCond %{HTTP_HOST} !^example\.com$ [NC] + # RewriteCond %{SERVER_NAME} !^example\.com$ [NC] # RewriteRule .* http://example.com/ [L,R=301] @@ -87,17 +87,17 @@ RewriteCond %{HTTP_COOKIE} !DRUPAL_UID RewriteCond %{REQUEST_METHOD} ^GET$ RewriteCond %{QUERY_STRING} ^$ - RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST}/0/%{REQUEST_URI} -d - RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST}/0/%{REQUEST_URI}/index.html -f - RewriteRule ^(.*)$ cache/%{HTTP_HOST}/0/$1/index.html [L] + RewriteCond %{DOCUMENT_ROOT}/cache/%{SERVER_NAME}/0/%{REQUEST_URI} -d + RewriteCond %{DOCUMENT_ROOT}/cache/%{SERVER_NAME}/0/%{REQUEST_URI}/index.html -f + RewriteRule ^(.*)$ cache/%{SERVER_NAME}/0/$1/index.html [L] RewriteCond %{REQUEST_URI} !^/cache RewriteCond %{REQUEST_URI} !^/user/login RewriteCond %{REQUEST_URI} !^/admin RewriteCond %{HTTP_COOKIE} !DRUPAL_UID RewriteCond %{REQUEST_METHOD} ^GET$ RewriteCond %{QUERY_STRING} ^$ - RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST}/0/%{REQUEST_URI}.html -f - RewriteRule ^(.*)$ cache/%{HTTP_HOST}/0/$1.html [L] + RewriteCond %{DOCUMENT_ROOT}/cache/%{SERVER_NAME}/0/%{REQUEST_URI}.html -f + RewriteRule ^(.*)$ cache/%{SERVER_NAME}/0/$1.html [L] # BOOST END # Rewrite current-style URLs of the form 'index.php?q=x'.