redir from home to apex

This commit is contained in:
Bruno Rybársky 2024-02-02 15:57:26 +01:00
parent 0c49410012
commit edfb7b26f9

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