Apache config
Last updated on
6 April 2026
Make sure you have the following modules enabled in Apache for this configuration to work properly:
mod_rewritefor URL rewriting.
From your drupal folder .htaccess file (usually the web folder) paste subsequent boost block immediately after:
# uncomment the following line:
# RewriteBase /
Paste this right after (Boost 8.x-1.x-dev)
# ---- BEGIN BOOST ----
RewriteCond %{REQUEST_METHOD} ^(GET|HEAD)$ [NC]
RewriteCond %{QUERY_STRING} ^$
RewriteCond %{HTTP_COOKIE} !(SESS|SSESS) [NC]
RewriteCond %{DOCUMENT_ROOT}/sites/default/files/boost%{REQUEST_URI}.html -f
RewriteRule ^ sites/default/files/boost%{REQUEST_URI}.html [L,E=BOOST_CACHE:1]
# # IMPORTANT: allow Basic Auth testing (do NOT bypass on Authorization)
# # So: do NOT add any Authorization-based skip.
<IfModule mod_headers.c>
Header set X-Boost-Cache "full" env=BOOST_CACHE
Header set X-Boost-Cache "full" env=REDIRECT_BOOST_CACHE
</IfModule>
# ---- END BOOST ----
Help improve this page
Page status: No known problems
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion