From 0d6482792cf9d2b55d6e5a4d9dffc661dc68f792 Mon Sep 17 00:00:00 2001 From: Kevin Alberts Date: Tue, 6 Mar 2018 15:28:45 +0100 Subject: [PATCH] Update redirection script --- redirects/index.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/redirects/index.php b/redirects/index.php index 76e7010..b5ccafb 100644 --- a/redirects/index.php +++ b/redirects/index.php @@ -4,18 +4,16 @@ ini_set('display_startup_errors', true); $association = explode(".", $_SERVER['HTTP_HOST']); $association = $association[0]; $city = "enschede"; -$switch = false; switch($association){ case "interactief": case "inter-actief": $association = "ia"; - $switch = true; break; default: break; } -if($switch){ +if($association){ header('Location: https://isonzeinterndronken.nl/'.$city.'/'.$association); }else{ header('Location: https://isonzeinterndronken.nl/');