From 112ebcabc4f0b1bacc521451075149ea3a87fb1a Mon Sep 17 00:00:00 2001 From: Kevin Alberts Date: Tue, 6 Mar 2018 15:21:21 +0100 Subject: [PATCH] Update redirection script --- redirects/index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/redirects/index.php b/redirects/index.php index 9473ebb..76e7010 100644 --- a/redirects/index.php +++ b/redirects/index.php @@ -4,10 +4,12 @@ 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; @@ -15,5 +17,7 @@ switch($association){ if($switch){ header('Location: https://isonzeinterndronken.nl/'.$city.'/'.$association); +}else{ + header('Location: https://isonzeinterndronken.nl/'); } ?>