2026-04-12 10:31:21 +02:00
|
|
|
DirectoryIndex index.php index.html
|
|
|
|
|
|
2026-03-04 13:39:20 +01:00
|
|
|
<IfModule mod_rewrite.c>
|
|
|
|
|
RewriteEngine On
|
|
|
|
|
RewriteCond %{SERVER_PORT} 80
|
|
|
|
|
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
|
|
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
|
|
# compress text file responses
|
|
|
|
|
<IfModule mod_deflate.c>
|
|
|
|
|
AddOutputFilterByType DEFLATE text/plain
|
|
|
|
|
AddOutputFilterByType DEFLATE text/html
|
|
|
|
|
AddOutputFilterByType DEFLATE text/css
|
|
|
|
|
AddOutputFilterByType DEFLATE text/javascript
|
|
|
|
|
AddOutputFilterByType DEFLATE application/json
|
|
|
|
|
AddOutputFilterByType DEFLATE application/javascript
|
|
|
|
|
AddOutputFilterByType DEFLATE application/x-javascript
|
|
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
|
|
# set security headers in all responses
|
|
|
|
|
<IfModule mod_headers.c>
|
|
|
|
|
|
|
|
|
|
# serve files as plain text if the actual content type is not known
|
|
|
|
|
# (hardens against attacks from malicious file uploads)
|
|
|
|
|
Header set Content-Type "text/plain" "expr=-z %{CONTENT_TYPE}"
|
|
|
|
|
Header set X-Content-Type-Options "nosniff"
|
|
|
|
|
|
|
|
|
|
</IfModule>
|