From 02995bfe9827c0c329c9c397411d83bd6918d096 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 1 Feb 2025 17:06:10 +0200 Subject: feat: Add XAMPP setup --- views/global/router.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'views/global') diff --git a/views/global/router.php b/views/global/router.php index ea5aa42..9025113 100644 --- a/views/global/router.php +++ b/views/global/router.php @@ -4,7 +4,14 @@ $VIEWS_DIR = __DIR__ . '/..'; $CONTROLLERS_DIR = __DIR__ . '/../../controllers'; $MODELS_DIR = __DIR__ . '/../../models'; -$uri = rtrim($_SERVER['REQUEST_URI'], '/'); +$uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); + +if ($uri === '/nowayforward_human/xampp/setup.php') { + http_response_code(301); // Permanent redirect + header('Location: /'); + exit; +} + $exploded = @explode('/', $uri, 4); $root = '/' . @$exploded[1]; $subroot = '/' . @$exploded[2]; -- cgit v1.2.3