-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
32 lines (24 loc) · 684 Bytes
/
index.php
File metadata and controls
32 lines (24 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
$host = $_SERVER['SERVER_NAME'];
if($host == "www.domain.de"){
header("Location: http://www.domain.de/de.php");
}
else if($host == "www.domain.at"){
header("Location: http://www.domain.at/at.php");
}
else if($host == "www.domain.com"){
header("Location: http://www.domain.com/com.php");
}
else if($host == "www.domain.net"){
header("Location: http://www.domain.net/net.php");
}
else if($host == "www.domain.org"){
header("Location: http://www.domain.org/org.php");
}
else if($host == "www.domain.ch"){
header("Location: http://www.domain.ch/ch.php");
}
else if($host == "www.domain.li"){
header("Location: http://www.domain.li/li.php");
}
?>