From edfb7b26f9c452939f1f9540a9516333ba6a5714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Fri, 2 Feb 2024 15:57:26 +0100 Subject: [PATCH] redir from home to apex --- lib/router.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/router.php b/lib/router.php index 97d49ea..3f2a201 100644 --- a/lib/router.php +++ b/lib/router.php @@ -21,7 +21,12 @@ function initRouter(): bool $routerRequest["subdomain"] = basename($routerRequest["requestAddress"][0]); $routerRequest["domain"] = basename($routerRequest["requestAddress"][1]); $routerRequest["tld"] = basename($routerRequest["requestAddress"][2]); + + if($routerRequest["subdomain"] == $routerConfig["default_site"]){ + $routerRequest["subdomain"] = ""; + } } + $routerRequest["page_name"] = basename($_SERVER["QUERY_STRING"]); if (empty($routerRequest["page_name"])) {