forked from idno/known
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
80 lines (73 loc) · 1.67 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# 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>
<Files ~ "\.dist$">
Order allow,deny
Deny from all
</Files>
<Files ~ "composer\.lock">
Order allow,deny
Deny from all
</Files>
<Files ~ "known\.php">
Order allow,deny
Deny from all
</Files>
<Files ~ "\.known">
Order allow,deny
Deny from all
</Files>
<Files ~ "\.ini$">
Order allow,deny
Deny from all
</Files>
<Files ~ "\.yml$">
Order allow,deny
Deny from all
</Files>
<Files ~ "\.xml$">
Order allow,deny
Deny from all
</Files>
<Files ~ "sitemap\.xml">
Order allow,deny
Allow from all
</Files>
<Files ~ "feed\.xml">
Order allow,deny
Allow from all
</Files>
<Files ~ "rss\.xml">
Order allow,deny
Allow from all
</Files>
#<Files ~ "\.php$">
# Order allow,deny
# Deny from all
#</Files>
<Files ~ "warmup\/*\.*">
Order allow,deny
Allow from all
</Files>
<Files ~ "index\.php">
Order allow,deny
Allow from all
</Files>
AddType video/ogg .ogv
AddType video/mp4 .mp4
AddType video/webm .webm