-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
executable file
·19 lines (18 loc) · 1.43 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
php_value memory_limit 24M
php_value upload_max_filesize 1M
php_value post_max_size 1M
php_value error_reporting 0
php_value display_errors 0
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^v([0-9]{1,2})/hostnames.txt ./index.php?version=$1&mode=hostnames [L,NC,QSA]
RewriteRule ^v([0-9]{1,2})/authkey.api ./index.php?version=$1&mode=authkey [L,NC,QSA]
RewriteRule ^v([0-9]{1,2})/createuser.api ./index.php?version=$1&mode=createuser [L,NC,QSA]
RewriteRule ^v([0-9]{1,2})/([0-9a-z]{32})/verify.api ./index.php?version=$1&key=$2&mode=verify [L,NC,QSA]
RewriteRule ^v([0-9]{1,2})/([0-9a-z]{32})/callback.api ./callback.php?version=$1&authkey=$2 [L,NC,QSA]
RewriteRule ^v([0-9]{1,2})/([0-9a-z]{32})/([0-9a-zA-Z]{32})/callback.api ./callback.php?version=$1&authkey=$2&key=$3 [L,NC,QSA]
RewriteRule ^v([0-9]{1,2})/([0-9a-z]{32})/([0-9a-zA-Z]{32})/([0-9a-zA-Z]{32})/callback.api ./callback.php?version=$1&authkey=$2&mode=$3&key=$4 [L,NC,QSA]
RewriteRule ^v([0-9]{1,2})/([0-9a-z]{32})/(domains).api ./index.php?version=$1&authkey=$2&mode=$3 [L,NC,QSA]
RewriteRule ^v([0-9]{1,2})/([0-9a-z]{32})/(jumps|domains|users)/(raw|html|serial|json|xml).api ./index.php?version=$1&authkey=$2&mode=$3&format=$4 [L,NC,QSA]
RewriteRule ^v([0-9]{1,2})/([0-9a-z]{32})/([0-9a-z]{32})/(edit|delete)/(jump|domain|user)/(raw|html|serial|json|xml).api ./index.php?version=$1&authkey=$2&key=$3&mode=$4&type=$5&format=$6 [L,NC,QSA]