diff --git a/htaccess b/htaccess
index 3267782..393140e 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 8600b4a..41eb478 100644
--- a/index.php
+++ b/index.php
@@ -1,127 +1,130 @@
-
-
-
-
-
-
- faultCode
- -32700
-
-
- faultString
- parse error. not well formed
-
-
-
-
-
-';
- }
- if ($_GET ['h'] == 'wp-login') {
- echo '
-
-
-
- Anmelden ‹ — WordPress
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ';
- }
-}
-?>
+
+
+
+
+
+
+ faultCode
+ -32700
+
+
+ faultString
+ parse error. not well formed
+
+
+
+
+
+';
+ }
+ if ($_GET ['h'] == 'api') {
+ echo '{"return":"success","version":"v1","_":' . time () . '}';
+ }
+ if ($_GET ['h'] == 'wp-login') {
+ echo '
+
+
+
+ Anmelden ‹ — WordPress
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ';
+ }
+}
+?>