WikiLerni/front/public/.htaccess

50 lines
1.6 KiB
ApacheConf
Raw Normal View History

# Activation de la génération des en-têtes Expires
ExpiresActive On
# Les documents HTML, JS, JSON, CSS, XML expirent dès leur modification
ExpiresByType text/html M0
ExpiresByType text/javascript M0
ExpiresByType application/javascript M0
ExpiresByType application/json M0
ExpiresByType text/css M0
ExpiresByType application/xml M0
# Compression de certains fichiers
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/png
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/xml
# Bloquer ETag
Header unset ETag
FileETag none
# Protection de la lecture des répertoires
Options -Indexes
# protection du htaccess
<files .htaccess>
order allow,deny
deny from all
</files>
# erreur 404
ErrorDocument 404 /404.html