| 1 | Options -Indexes |
| 2 | DirectoryIndex index.php |
| 3 | |
| 4 | # Apache/PHP-FPM strips the Authorization header by default; pass it to PHP for Bearer API keys. |
| 5 | <IfModule mod_rewrite.c> |
| 6 | RewriteEngine On |
| 7 | RewriteCond %{HTTP:Authorization} . |
| 8 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] |
| 9 | </IfModule> |
| 10 | <IfModule mod_setenvif.c> |
| 11 | SetEnvIf Authorization "(.+)" HTTP_AUTHORIZATION=$1 |
| 12 | </IfModule> |
| 13 | <FilesMatch "^(README\.md|router\.php)$"> |
| 14 | Require all denied |
| 15 | </FilesMatch> |
| 16 | <IfModule mod_headers.c> |
| 17 | Header always set X-Content-Type-Options "nosniff" |
| 18 | Header always set Referrer-Policy "same-origin" |
| 19 | </IfModule> |
| 20 | |
| 21 | <IfModule mod_mime.c> |
| 22 | AddType application/manifest+json .webmanifest |
| 23 | </IfModule> |
| 24 | |
| 25 | # Versioned asset URLs (?v=commit) may be cached for a long time. |
| 26 | <IfModule mod_headers.c> |
| 27 | <FilesMatch "\.(css|js|png|svg|webp|woff2?)$"> |
| 28 | Header set Cache-Control "public, max-age=31536000, immutable" |
| 29 | </FilesMatch> |
| 30 | </IfModule> |
projects-timfalken-com verhalenboek