diff --git a/lib/router.php b/lib/router.php index 3a17a0b..3090011 100644 --- a/lib/router.php +++ b/lib/router.php @@ -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{