forked from mapkyca/idno
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhtaccess-2.4.dist
68 lines (61 loc) · 1.54 KB
/
htaccess-2.4.dist
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
64
65
66
67
68
# Known .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine on
#RewriteBase /
RewriteCond %{HTTP:Authorization} ^(.+)$
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{ENV:BASE} ^$
RewriteCond $1::%{REQUEST_URI} ^(.*)::(.*?)\1$
RewriteRule ^(.*)$ - [ENV=BASE:%2]
RewriteRule ^js/canary\.js$ %{ENV:BASE}/js/default.js [L]
# The query string cache trick doesn't really work, so use rewrite rules instead
RewriteRule ^js/[0-9]+/(.*)$ %{ENV:BASE}/js/$1 [L]
RewriteRule ^css/[0-9]+/(.*)$ %{ENV:BASE}/css/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ %{ENV:BASE}/index.php?/$1 [L,QSA]
RewriteRule ^Uploads.* - [F]
</IfModule>
<IfModule mod_php5.c>
php_value upload_max_filesize 1000M
php_value post_max_size 1080M
</IfModule>
<Files ~ "\.dist$">
Require all denied
</Files>
<Files ~ "known\.php">
Require all denied
</Files>
<Files ~ "\.known">
Require all denied
</Files>
<Files ~ "\.ini$">
Require all denied
</Files>
<Files ~ "\.yml$">
Require all denied
</Files>
<Files ~ "\.xml$">
Require all denied
</Files>
<Files ~ "sitemap\.xml">
Require all granted
</Files>
<Files ~ "feed\.xml">
Require all granted
</Files>
<Files ~ "rss\.xml">
Require all granted
</Files>
#<Files ~ "\.php$">
# Require all denied
#</Files>
<Files ~ "warmup\/*\.*">
Require all granted
</Files>
<Files ~ "index\.php">
Require all granted
</Files>
AddType video/ogg .ogv
AddType video/mp4 .mp4
AddType video/webm .webm