Files
MSP-Marcillac/public/.htaccess
T
Romulus21 9cc1530f2e
Déploiement / deploy (push) Failing after 6m40s
first commit
2026-10-29 15:36:23 +01:00

20 lines
659 B
ApacheConf

# Apache (hébergement mutualisé OVH)
ErrorDocument 404 /404.html
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
<IfModule mod_headers.c>
# Fichiers générés par Astro : nom avec empreinte, donc immuables
<If "%{REQUEST_URI} =~ m#^/_astro/#">
Header set Cache-Control "public, max-age=31536000, immutable"
</If>
Header always set X-Content-Type-Options "nosniff"
Header always set Referrer-Policy "strict-origin-when-cross-origin"
</IfModule>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/css application/javascript image/svg+xml application/json
</IfModule>