forked from Adleraci/adlerka.top
fix redir from home to apex
This commit is contained in:
parent
eeb043d8d7
commit
b903a2db02
@ -38,8 +38,14 @@ function initRouter(): bool
|
|||||||
|
|
||||||
|
|
||||||
if ($needsRedirect) {
|
if ($needsRedirect) {
|
||||||
|
if(!empty($routerRequest["subdomain"])){
|
||||||
|
$sub_domain = $routerRequest["subdomain"] . ".";
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$sub_domain = "";
|
||||||
|
}
|
||||||
$redirectAddress = $routerConfig["protocol"] .
|
$redirectAddress = $routerConfig["protocol"] .
|
||||||
$routerRequest["subdomain"] . "." .
|
$sub_domain .
|
||||||
$routerRequest["domain"] . "." .
|
$routerRequest["domain"] . "." .
|
||||||
$routerRequest["tld"] . "/" .
|
$routerRequest["tld"] . "/" .
|
||||||
$routerRequest["page_name"];
|
$routerRequest["page_name"];
|
||||||
|
Loading…
Reference in New Issue
Block a user