Skip to content
This repository was archived by the owner on Dec 15, 2019. It is now read-only.

Commit 0c18755

Browse files
committed
update htaccess file
1 parent 2ef6d5d commit 0c18755

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
# Assets and user uploads
1717
/web/bundles/
18-
/web/uploads/
1918

2019
# PHPUnit
2120
/app/phpunit.xml

.htaccess

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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

Comments
 (0)