Update redirection script
This commit is contained in:
		
							parent
							
								
									1e72794051
								
							
						
					
					
						commit
						112ebcabc4
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -4,10 +4,12 @@ ini_set('display_startup_errors', true);
 | 
				
			||||||
$association = explode(".", $_SERVER['HTTP_HOST']);
 | 
					$association = explode(".", $_SERVER['HTTP_HOST']);
 | 
				
			||||||
$association = $association[0];
 | 
					$association = $association[0];
 | 
				
			||||||
$city = "enschede";
 | 
					$city = "enschede";
 | 
				
			||||||
 | 
					$switch = false;
 | 
				
			||||||
switch($association){
 | 
					switch($association){
 | 
				
			||||||
    case "interactief":
 | 
					    case "interactief":
 | 
				
			||||||
    case "inter-actief":
 | 
					    case "inter-actief":
 | 
				
			||||||
        $association = "ia";
 | 
					        $association = "ia";
 | 
				
			||||||
 | 
					        $switch = true;
 | 
				
			||||||
        break;
 | 
					        break;
 | 
				
			||||||
    default:
 | 
					    default:
 | 
				
			||||||
        break;
 | 
					        break;
 | 
				
			||||||
| 
						 | 
					@ -15,5 +17,7 @@ switch($association){
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if($switch){
 | 
					if($switch){
 | 
				
			||||||
    header('Location: https://isonzeinterndronken.nl/'.$city.'/'.$association);
 | 
					    header('Location: https://isonzeinterndronken.nl/'.$city.'/'.$association);
 | 
				
			||||||
 | 
					}else{
 | 
				
			||||||
 | 
					    header('Location: https://isonzeinterndronken.nl/');
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
?>
 | 
					?>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue