|
| 1 | +<IfModule mod_rewrite.c> |
| 2 | + RewriteEngine On |
| 3 | + RewriteBase /web/ |
| 4 | + RewriteCond %{REQUEST_FILENAME} !-f |
| 5 | + RewriteRule ^(.*)$ web/$1 [QSA,L] |
| 6 | +</IfModule> |
| 7 | +<IfModule mod_deflate.c> |
| 8 | +# MOD_DEFLATE COMPRESSION |
| 9 | +SetOutputFilter DEFLATE |
| 10 | +AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript application/x-httpd-php |
| 11 | +#Pour les navigateurs incompatibles |
| 12 | +BrowserMatch ^Mozilla/4 gzip-only-text/html |
| 13 | +BrowserMatch ^Mozilla/4\.0[678] no-gzip |
| 14 | +BrowserMatch \bMSIE !no-gzip !gzip-only-text/html |
| 15 | +BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html |
| 16 | +#ne pas mettre en cache si ces fichiers le sont déjà |
| 17 | +SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip |
| 18 | +#les proxies doivent donner le bon contenu |
| 19 | +Header append Vary User-Agent env=!dont-vary |
| 20 | +</IfModule> |
| 21 | + |
| 22 | +# BEGIN Expire headers |
| 23 | +<IfModule mod_expires.c> |
| 24 | + ExpiresActive On |
| 25 | + ExpiresDefault "access plus 7200 seconds" |
| 26 | + ExpiresByType image/jpg "access plus 2592000 seconds" |
| 27 | + ExpiresByType image/jpeg "access plus 2592000 seconds" |
| 28 | + ExpiresByType image/png "access plus 2592000 seconds" |
| 29 | + ExpiresByType image/gif "access plus 2592000 seconds" |
| 30 | + AddType image/x-icon .ico |
| 31 | + ExpiresByType image/ico "access plus 2592000 seconds" |
| 32 | + ExpiresByType image/icon "access plus 2592000 seconds" |
| 33 | + ExpiresByType image/x-icon "access plus 2592000 seconds" |
| 34 | + ExpiresByType text/css "access plus 2592000 seconds" |
| 35 | + ExpiresByType text/javascript "access plus 2592000 seconds" |
| 36 | + ExpiresByType text/html "access plus 7200 seconds" |
| 37 | + ExpiresByType application/xhtml+xml "access plus 7200 seconds" |
| 38 | + ExpiresByType application/javascript A259200 |
| 39 | + ExpiresByType application/x-javascript "access plus 2592000 seconds" |
| 40 | + ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds" |
| 41 | +</IfModule> |
| 42 | +# END Expire headers |
0 commit comments