2019-07-08 19:13:49 +02:00
|
|
|
# Active la compression GZIP - option Apache
|
2019-06-08 20:15:12 +02:00
|
|
|
<IfModule mod_gzip.c>
|
|
|
|
mod_gzip_on Yes
|
|
|
|
mod_gzip_dechunk Yes
|
|
|
|
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
|
|
|
|
mod_gzip_item_include handler ^cgi-script$
|
|
|
|
mod_gzip_item_include mime ^text\.*
|
|
|
|
mod_gzip_item_include mime ^application/x-javascript.*
|
|
|
|
mod_gzip_item_exclude mime ^image\.*
|
|
|
|
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
|
|
|
|
</IfModule>
|
|
|
|
|
2019-07-08 19:13:49 +02:00
|
|
|
# Active la compression DEFLATE - option Apache
|
2019-06-08 20:15:12 +02:00
|
|
|
<IfModule mod_deflate.c>
|
|
|
|
AddOutputFilterByType DEFLATE text/plain
|
|
|
|
AddOutputFilterByType DEFLATE text/html
|
|
|
|
AddOutputFilterByType DEFLATE text/xml
|
|
|
|
AddOutputFilterByType DEFLATE text/shtml
|
|
|
|
AddOutputFilterByType DEFLATE text/css
|
|
|
|
AddOutputFilterByType DEFLATE application/xml
|
|
|
|
AddOutputFilterByType DEFLATE application/xhtml+xml
|
|
|
|
AddOutputFilterByType DEFLATE application/rss+xml
|
|
|
|
AddOutputFilterByType DEFLATE application/javascript
|
|
|
|
AddOutputFilterByType DEFLATE application/x-javascript
|
|
|
|
</IfModule>
|
|
|
|
|
2018-11-13 19:36:52 +01:00
|
|
|
# Bloque l'accès à la liste des fichiers
|
|
|
|
Options -Indexes
|
|
|
|
|
2022-04-28 12:51:25 +02:00
|
|
|
# Désactive l'option de substitution automatique
|
|
|
|
<IfModule mod_negotiation.c>
|
|
|
|
Options -MultiViews
|
2022-04-29 19:23:11 +02:00
|
|
|
</IfModule>
|
|
|
|
|
2022-04-30 15:37:24 +02:00
|
|
|
# ne pas supprimer la ligne URL rewriting !
|
2023-02-03 11:14:03 +01:00
|
|
|
|
|
|
|
# URL rewriting
|
|
|
|
<IfModule mod_rewrite.c>
|
|
|
|
RewriteEngine on
|
|
|
|
RewriteBase /ZwiiCMS/
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
|
|
RewriteRule ^(.*)$ index.php?$1 [L]
|
|
|
|
</IfModule>
|
|
|
|
# URL rewriting
|