-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.htaccess
47 lines (33 loc) · 1.3 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
php_value display_errors off
php_value display_startup_errors off
<IfFile /var/www/html/_control/debug>
php_value display_startup_errors on
php_value display_errors stderr
</IfFile>
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
<IfModule mod_mime.c>
AddType font/ttf .ttf
AddType application/javascript .js
AddCharset UTF-8 .js
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
</IfModule>
# Keymanweb.com 2.0 rewrite rules for Keymanweb.com 1.0 /go/lang/kbd urls
# Rewrite /go/lang/kbd/app[?...] to /?kmwlang=lang,kmwkbd=kbd
RewriteRule "^go/([^/]+)/([^/]+)/([^?]+)(\?)?(.+)?$" "/index.php?kmwlang=$1&kmwkbd=Keyboard_$2&$5"
# Rewrite /go/lang/kbd[?...] to /?kmwlang=lang,kmwkbd=kbd
RewriteRule "^go/([^/]+)/([^?]+)(\?)?(.+)?$" "/index.php?kmwlang=$1&kmwkbd=Keyboard_$2&$4"
# Keymanweb.com 2.0 rewrite rules for Keymanweb.com 1.0 /lang/app.php urls
# Redirect /lang/app?kmwlang=lang,kmwkbd=kbd to /?kmwlang=lang,kmwkbd=kbd
RedirectMatch "^../[^?]+?kmwlang=(.+)&kmwkbd=(.+)(&(.+))?$" "/go/$1/$2"
# Redirect /lang/app to /
RedirectMatch "^../[^?]+$" "/"
# Redirect /mini/* to /
RedirectMatch "^mini/" "/"
# Control rules
RewriteRule "^_control/info$" "_control/info.php" [END]
RewriteRule "^_control/ready$" "_control/ready.php" [END]