ZwiiCMS, le gestionnaire de site Web sans base de données. https://www.zwiicms.fr
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.3 KiB

2 years ago
  1. # Active la compression GZIP - option Apache
  2. <IfModule mod_gzip.c>
  3. mod_gzip_on Yes
  4. mod_gzip_dechunk Yes
  5. mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
  6. mod_gzip_item_include handler ^cgi-script$
  7. mod_gzip_item_include mime ^text\.*
  8. mod_gzip_item_include mime ^application/x-javascript.*
  9. mod_gzip_item_exclude mime ^image\.*
  10. mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
  11. </IfModule>
  12. # Active la compression DEFLATE - option Apache
  13. <IfModule mod_deflate.c>
  14. AddOutputFilterByType DEFLATE text/plain
  15. AddOutputFilterByType DEFLATE text/html
  16. AddOutputFilterByType DEFLATE text/xml
  17. AddOutputFilterByType DEFLATE text/shtml
  18. AddOutputFilterByType DEFLATE text/css
  19. AddOutputFilterByType DEFLATE application/xml
  20. AddOutputFilterByType DEFLATE application/xhtml+xml
  21. AddOutputFilterByType DEFLATE application/rss+xml
  22. AddOutputFilterByType DEFLATE application/javascript
  23. AddOutputFilterByType DEFLATE application/x-javascript
  24. </IfModule>
  25. # Cache le PHPSESSID de l'url
  26. SetEnv SESSION_USE_TRANS_SID 0
  27. # Bloque l'accès à la liste des fichiers
  28. Options -Indexes
  29. # Désactive l'option de substitution automatique
  30. <IfModule mod_negotiation.c>
  31. Options -MultiViews
  32. </IfModule>
  33. # Attention, surtout ne rien modifier ci-dessous !
  34. # URL rewriting