Add redirects page for subdomains

This commit is contained in:
Kevin Alberts 2017-12-19 15:57:35 +01:00
parent ccb5a44aac
commit 788f95b45c

19
redirects/index.php Normal file
View file

@ -0,0 +1,19 @@
<?php
ini_set('display_errors', true);
ini_set('display_startup_errors', true);
$association = explode(".", $_SERVER['HTTP_HOST']);
$association = $vereniging[0];
$city = "enschede";
switch($association){
case "interactief":
case "inter-actief":
$association = "ia";
break;
default:
break;
}
if($switch){
header('Location: https://isonzeinterndronken.nl/'.$city.'/'.$association);
}
?>