This commit is contained in:
Bruno Rybársky 2024-01-16 21:33:08 +01:00
parent 372f42749c
commit 765180e706

@ -32,9 +32,13 @@ function initRouter(){
} }
if ($needsRedirect) { if ($needsRedirect) {
$redirectAddress = implode('.', $routerRequest["requestAddress"]); $redirectAddress = $routerConfig["protocol"] .
$routerRequest["subdomain"] . "." .
$routerRequest["domain"] . "." .
$routerRequest["tld"] . "/" .
$routerRequest["page_name"];
// Redirect with default page name // Redirect with default page name
header("Location: " . $routerConfig["protocol"] . $redirectAddress . "/" . $routerRequest["page_name"]); header("Location: $redirectAddress");
} }
return !$needsRedirect; return !$needsRedirect;