Add redirects page for subdomains
This commit is contained in:
		
							parent
							
								
									ccb5a44aac
								
							
						
					
					
						commit
						788f95b45c
					
				
					 1 changed files with 19 additions and 0 deletions
				
			
		
							
								
								
									
										19
									
								
								redirects/index.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								redirects/index.php
									
										
									
									
									
										Normal 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);
 | 
			
		||||
}
 | 
			
		||||
?>
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue