Options -Indexes DirectoryIndex index.php # Apache/PHP-FPM strips the Authorization header by default; pass it to PHP for Bearer API keys. RewriteEngine On RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] SetEnvIf Authorization "(.+)" HTTP_AUTHORIZATION=$1 Require all denied Header always set X-Content-Type-Options "nosniff" Header always set Referrer-Policy "same-origin" AddType application/manifest+json .webmanifest # Versioned asset URLs (?v=commit) may be cached for a long time. Header set Cache-Control "public, max-age=31536000, immutable"