-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
29 lines (25 loc) · 869 Bytes
/
.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
php_value post_max_size 50M
php_value upload_max_filesize 50M
<IfModule mod_headers.c>
Header append Vary User-Agent
Header set Vary Accept-Encoding
</IfModule>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
<FilesMatch "\.(ttf|otf|eot|svg)$" >
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>
FileETag None
AddDefaultCharset utf-8
AddCharset utf-8 .html .css .js .xml .json .rss
AddType application/octet-stream .db
ServerSignature Off
DirectoryIndex index.html
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/index\.(html|htm|php)$ [NC]
RewriteRule ^ http://%{HTTP_HOST}/? [L,R=301]
</IfModule>