-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
55 lines (47 loc) · 1.7 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^lebeaujeu\.com [NC]
RewriteRule ^(.*)$ https://www.lebeaujeu.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.lebeaujeu\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.lebeaujeu.com/$1 [R=301,L]
#RewriteCond %{SCRIPT_FILENAME} !-f
#RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^/news$ news.html [QSA,L]
AddDefaultCharset utf-8
##### GZIP Compression
# Commenter la ligne ci-dessous si plantage
# php_flag zlib.output_compression on
# Filtre
SetOutputFilter DEFLATE
# Vieux navigateurs
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0678 no-gzip
# No IE
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# Images : pas de compression
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
# Proxy
Header append Vary User-Agent env=!dont-vary
##### Desactivation des ETags
#Header unset ETag
#FileETag none
##### Headers Expires
<IfModule mod_expires.c>
#ExpiresActive On
#ExpiresDefault "access plus 2 days"
#ExpiresByType image/jpg "access plus 1 year"
#ExpiresByType image/jpeg "access plus 1 year"
#ExpiresByType image/png "access plus 1 year"
#ExpiresByType image/gif "access plus 1 year"
AddType image/x-icon .ico
#ExpiresByType image/ico "access plus 1 year"
#ExpiresByType image/icon "access plus 1 year"
#ExpiresByType image/x-icon "access plus 1 year"
#ExpiresByType text/css "access plus 1 year"
#ExpiresByType text/html "access plus 2 days"
#ExpiresByType application/xhtml+xml "access plus 2 days"
#ExpiresByType text/javascript "access plus 1 month"
#ExpiresByType application/javascript A2592000
#ExpiresByType application/x-javascript "access plus 1 month"
</IfModule>