aboutsummaryrefslogtreecommitdiff
path: root/views/global
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-02-01 17:06:10 +0200
committerSyndamia <kamen@syndamia.com>2025-02-01 17:06:10 +0200
commit02995bfe9827c0c329c9c397411d83bd6918d096 (patch)
tree5b44dfb3c18000e201da40976f2f51158c8fc423 /views/global
parent61c5b503352c983d4e532b5a59e2ae913e53e70c (diff)
downloadnowayforward_human-02995bfe9827c0c329c9c397411d83bd6918d096.tar
nowayforward_human-02995bfe9827c0c329c9c397411d83bd6918d096.tar.gz
nowayforward_human-02995bfe9827c0c329c9c397411d83bd6918d096.zip
feat: Add XAMPP setup
Diffstat (limited to 'views/global')
-rw-r--r--views/global/router.php9
1 files changed, 8 insertions, 1 deletions
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];