aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-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];