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"])) {