-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.htaccess
More file actions
58 lines (40 loc) · 1.34 KB
/
.htaccess
File metadata and controls
58 lines (40 loc) · 1.34 KB
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
56
57
58
#########################################
######### Gzip & Friendly URLs ##########
#########################################
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteRule ^(.*)(\.js|\.css)$ gzip.php?file=$1$2&type=$2 [L]
RewriteRule ^/(.+)/media/(.+\.(flv|jpg|png))$ /$1.html?res=$2 [NC,L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]
AddDefaultCharset utf-8
FileETag None
</IfModule>
Options -Indexes
#########################################
################ Expires ################
#########################################
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 hour"
# Header append Cache-Control max-age=3600
</IfModule>
SetEnv REGISTER_GLOBALS 0
SetEnv MAGIC_QUOTES 0
SetEnv PHP_VER 5_3
# Insert filter
#SetOutputFilter DEFLATE
# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# Don't compress images
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png)$ no-gzip dont-vary
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
# RequestHeader unset Cookie
#Options none