eieste/mccaching/master/.htaccess
#php_value session.save_path '/'
php_value session.cookie_path '/'
php_value session.auto_start 1
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^api/heartbeat$ /interface/api.php?type=heartbeat&value=pass
RewriteRule ^mis/heartbeat$ /interface/mis.php?uuid=pass&type=heartbeat&sub_type=pass&value=pass
#http://mc-caching.org/name/eieste
RewriteCond $1 !^(msi|MSI|info|INFO|api|API|interface|config|controller|css|js|font-awesome|fonts|img|installer|js|python_daemon)
RewriteRule ^([^/]*)/([^/]*)/?$ /interface/api.php?type=$1&value=$2 [L]
#RewriteRule ^api/([^/]*)/([^/]*)/([^/]*)/$ /interface/api.php?type=$2&version=$1&value=$3 [L]
#RewriteRule ^api/([^/]*)/([^/]*)/$ /interface/api.php?type=$1&version={latest_version}&value=$2 [L]
RewriteRule ^API/([^/]*)/([^/]*)/?$ /interface/api.php?type=$1&value=$2 [L]
RewriteRule ^api/([^/]*)/([^/]*)/?$ /interface/api.php?type=$1&value=$2 [L]
RewriteRule ^MIS/([^/]*)/([^/]*)/([^/]*)/([^/]*)/?$ /interface/mis.php?uuid=playeruuid&type=$2&sub_type=$3&value=$4 [L]
RewriteRule ^mis/([^/]*)/([^/]*)/([^/]*)/([^/]*)/?$ /interface/mis.php?uuid=playeruuid&type=$2&sub_type=$3&value=$4 [L]
RewriteRule ^info/?$ /interface/api.php?type=info&value=pass [L]
On Github License
Files