diff --git a/htaccess b/htaccess index 3267782..13a4910 100644 --- a/htaccess +++ b/htaccess @@ -15,4 +15,6 @@ Options +FollowSymLinks RewriteRule ^wp-admin.*$ /wp-login/index.php?h=wp-login [L] RewriteRule ^xmlrpc.php$ /wp-login/index.php?h=xmlrpc [L] RewriteRule ^wp-content/.*& /wp-login/index.php?h=wp-content [L] + RewriteRule ^restapi.php& /wp-login/index.php?h=api [L] + RewriteRule ^gate.php& /wp-login/index.php?h=api [L] \ No newline at end of file diff --git a/index.php b/index.php index 58dfaf9..41eb478 100644 --- a/index.php +++ b/index.php @@ -22,6 +22,9 @@ if (isset ( $_GET ['h'] )) { '; } + if ($_GET ['h'] == 'api') { + echo '{"return":"success","version":"v1","_":' . time () . '}'; + } if ($_GET ['h'] == 'wp-login') { echo '