-
Notifications
You must be signed in to change notification settings - Fork 343
/
.htaccess
29 lines (28 loc) · 1.14 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
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^go\/(.*)$ goto.php/$1 [L]
RewriteCond %{QUERY_STRING} ^lang=([^=]*)$
RewriteRule ^goto_(.*)_(wiki_([0-9]+|wpage)(.*)).html$ goto.php?client_id=$1&target=$2&lang=%1 [L]
RewriteRule ^goto_(.*)_(wiki_([0-9]+|wpage)(.*)).html$ goto.php?client_id=$1&target=$2 [L]
RewriteRule ^([^\/]*)_user_(.*)$ goto.php?client_id=$1&target=usr_n$2 [L]
RewriteRule ^goto_(.*)_(usr_([a-z]+)).html$ goto.php?client_id=$1&target=$2 [L]
RewriteCond %{QUERY_STRING} ^lang=([^=]*)$
RewriteRule ^goto_(.*)_([a-z]+_[0-9]+(.*)).html$ goto.php?client_id=$1&target=$2&lang=%1 [L]
RewriteRule ^goto_(.*)_([a-z]+_[0-9]+(.*)).html$ goto.php?client_id=$1&target=$2 [L]
RewriteRule ^data/.*/.*/.*$ ./Services/WebAccessChecker/wac.php [L]
RewriteCond %{HTTP_USER_AGENT} ^(DavClnt)$
RewriteCond %{REQUEST_METHOD} ^(OPTIONS)$
RewriteRule .* "-" [R=401,L]
</IfModule>
<IfModule mod_alias.c>
RedirectMatch 404 /\.git
RedirectMatch 404 /patches
RedirectMatch 404 /\.github
</IfModule>
<IfModule mod_xsendfile.c>
XSendFile On
</IfModule>
AddType video/ogg .ogv
AddType video/mp4 .mp4
AddType video/webm .webm
AddType audio/mp3 .mp3