{escaping off} ForceType {contentType} ExpiresActive on ExpiresByType {contentType} {mode}{lifetime} RewriteEngine On Explicitly prevent direct access here. This is needed because the .htaccess access check in the root dir is overwritten by the RewriteRules defined here. RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteRule .* - [F,L] RewriteCond %{TIME} >@{expires} RewriteRule ^.*$ /index.php Header set {name} "{value}"