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"]){
|
||||
$routerRequest["subdomain"] = "";
|
||||
$needsRedirect = true;
|
||||
echo "cuz apex";
|
||||
header("redirReasonApex: yes");
|
||||
}
|
||||
}
|
||||
|
||||
@ -35,7 +35,7 @@ function initRouter(): bool
|
||||
// Page name is empty
|
||||
$needsRedirect = true;
|
||||
$routerRequest["page_name"] = $routerConfig["default_page"];
|
||||
header("redirReason: cuz page name");
|
||||
header("redirReasonPage: yes");
|
||||
}
|
||||
|
||||
|
||||
@ -53,8 +53,6 @@ function initRouter(): bool
|
||||
$routerRequest["page_name"];
|
||||
// Redirect with default page name
|
||||
header("Location: $redirectAddress");
|
||||
header("RedirHere: $redirectAddress");
|
||||
header("redirReason: false");
|
||||
return false;
|
||||
}
|
||||
else{
|
||||
|
Loading…
Reference in New Issue
Block a user