forked from Adleraci/adlerka.top
test
This commit is contained in:
parent
372f42749c
commit
765180e706
@ -32,9 +32,13 @@ function initRouter(){
|
||||
}
|
||||
|
||||
if ($needsRedirect) {
|
||||
$redirectAddress = implode('.', $routerRequest["requestAddress"]);
|
||||
$redirectAddress = $routerConfig["protocol"] .
|
||||
$routerRequest["subdomain"] . "." .
|
||||
$routerRequest["domain"] . "." .
|
||||
$routerRequest["tld"] . "/" .
|
||||
$routerRequest["page_name"];
|
||||
// Redirect with default page name
|
||||
header("Location: " . $routerConfig["protocol"] . $redirectAddress . "/" . $routerRequest["page_name"]);
|
||||
header("Location: $redirectAddress");
|
||||
}
|
||||
|
||||
return !$needsRedirect;
|
||||
|
Loading…
Reference in New Issue
Block a user