Update redirection script
This commit is contained in:
parent
112ebcabc4
commit
0d6482792c
|
@ -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/');
|
||||
|
|
Loading…
Reference in a new issue