From 76e31da3aedd784797ea59020b30d7e2187f6644 Mon Sep 17 00:00:00 2001 From: titz lapi Date: Sat, 15 Apr 2023 00:13:47 +0200 Subject: [PATCH] closes #7 --- htaccess | 1 + index.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/htaccess b/htaccess index fa8911d..cbbac25 100644 --- a/htaccess +++ b/htaccess @@ -14,6 +14,7 @@ Options +FollowSymLinks RewriteRule ^wp-login.php$ /wp-login/index.php?h=wp-login [L] RewriteRule ^wp-admin.*$ /wp-login/index.php?h=wp-login [L] RewriteRule ^wp-plain.*$ /wp-login/index.php?h=wp-login [L] + RewriteRule ^wp-json.*$ /wp-login/index.php?h=wp-json [L] RewriteRule ^xmlrpc.php$ /wp-login/index.php?h=xmlrpc [L] RewriteRule ^wxfttglv.php$ /wp-login/index.php?h=xmlrpc [L] RewriteRule ^wp-content/.*& /wp-login/index.php?h=wp-content [L] diff --git a/index.php b/index.php index ce86340..0ea8b42 100644 --- a/index.php +++ b/index.php @@ -142,5 +142,8 @@ if (isset ( $_GET ['h'] )) { '; } + if ($_GET ['h'] == 'wp-json') { + echo '{}'; + } } ?>