forked from Adleraci/adlerka.top
exit on redirect
This commit is contained in:
parent
aa0db2d582
commit
ac6ceb77a1
@ -25,7 +25,7 @@ function initRouter(): bool
|
|||||||
if($routerRequest["subdomain"] == $routerConfig["default_site"]){
|
if($routerRequest["subdomain"] == $routerConfig["default_site"]){
|
||||||
$routerRequest["subdomain"] = "";
|
$routerRequest["subdomain"] = "";
|
||||||
$needsRedirect = true;
|
$needsRedirect = true;
|
||||||
echo "cuz apex";
|
header("redirReasonApex: yes");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ function initRouter(): bool
|
|||||||
// Page name is empty
|
// Page name is empty
|
||||||
$needsRedirect = true;
|
$needsRedirect = true;
|
||||||
$routerRequest["page_name"] = $routerConfig["default_page"];
|
$routerRequest["page_name"] = $routerConfig["default_page"];
|
||||||
header("redirReason: cuz page name");
|
header("redirReasonPage: yes");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -53,8 +53,6 @@ function initRouter(): bool
|
|||||||
$routerRequest["page_name"];
|
$routerRequest["page_name"];
|
||||||
// Redirect with default page name
|
// Redirect with default page name
|
||||||
header("Location: $redirectAddress");
|
header("Location: $redirectAddress");
|
||||||
header("RedirHere: $redirectAddress");
|
|
||||||
header("redirReason: false");
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
Loading…
Reference in New Issue
Block a user