# Empêcher l'accès direct aux fichiers PHP
Order Allow,Deny
Deny from all
Require all denied
Order Allow,Deny
Allow from all
Require all granted
# Autoriser l'accès aux points d'entrée spécifiques
Order Allow,Deny
Allow from all
Require all granted
# Définir les types MIME corrects
AddType text/css .css
AddType application/javascript .js
AddType image/x-icon .ico
AddType image/svg+xml .svg
AddType application/x-font-woff .woff
AddType application/x-font-woff2 .woff2
# Activer la compression
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE text/javascript
# Cache headers
ExpiresActive On
ExpiresDefault "access plus 1 month"
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType image/x-icon "access plus 1 year"
# Protection des dossiers
Options -Indexes