-
Notifications
You must be signed in to change notification settings - Fork 3
/
.htaccess
63 lines (59 loc) · 1.79 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
56
57
58
59
60
61
62
63
<IfModule mod_authz_core.c>
<Files "config.php">
Require all denied
</Files>
<Files "common.php">
Require all denied
</Files>
</IfModule>
# Common directives.
AddDefaultCharset utf-8
AddCharset utf-8 .html .css .js .xml .json .rss
Options -Indexes -MultiViews
FileETag None
# MIME types.
AddType audio/ogg ogg oga
AddType video/ogg ogv
AddType audio/webm webma
AddType video/webm webm webmv
AddType audio/mp4 m4a
AddType video/mp4 mp4 m4v
AddType audio/opus opus
AddType audio/flac flac
AddType audio/aac aac
AddType audio/mpeg mp1 mp2 mp3 mpg mpeg
AddType audio/wav wav
AddType image/png png
AddType image/gif gif
AddType image/jpeg jpg jpeg
AddType image/webp webp
AddType image/svg+xml svg svgz
AddType font/ttf ttf
AddType font/otf otf
AddType font/woff woff
AddType font/woff2 woff2
AddType text/javascript js
AddType text/css css
AddType text/html html
AddType text/plain txt log csv tsv
AddType application/x-7z-compressed 7z
AddType application/x-bittorrent torrent
# Default expiration.
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/* "access plus 1 month"
ExpiresByType audio/* "access plus 3 month"
ExpiresByType video/* "access plus 3 month"
ExpiresByType font/* "access plus 1 month"
ExpiresByType text/css "access plus 7 days"
ExpiresByType text/javascript "access plus 7 days"
</IfModule>
# Gzip compression.
<IfModule mod_deflate.c>
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css
AddOutputFilterByType DEFLATE text/javascript application/json
AddOutputFilterByType DEFLATE application/xml application/xhtml+xml application/rss+xml
AddOutputFilterByType DEFLATE font/ttf font/otf image/svg+xml
</IfModule>
</IfModule>