redirect script
Jeg skal lave et script som redirecter 6 forskellige domæner ned i 6 forskellige undermapper på en server. Jeg har forsøgt at skrive et script som ikke virker...help me!Herefter følger scriptet:
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
<meta name="generator" content="Adobe GoLive 5">
<title>Mezina A/S</title>
</head>
<body bgcolor="#ffffff">
<p><
?PHP
if ($HTTP_HOST == "salus.dk") {
header("location: http://www.salus.dk/salus/");
}
else if ($HTTP_HOST == "urizal.dk") {
header("location: http://www.salus.dk/urizal");
}
else if ($HTTP_HOST == "kwai.dk") {
header("location: http://www.salus.dk/kwai");
}
else if ($HTTP_HOST == "cypar.dk") {
header("location: http://www.salus.dk/cypar");
}
else if ($HTTP_HOST == "velzina.dk") {
header("location: http://www.salus.dk/velzina");
}
else if ($HTTP_HOST == "neolic.dk") {
header("location: http://www.salus.dk/neolic");
}
else if ($HTTP_HOST == "tempel.dk") {
header("location: http://www.salus.dk/tempel");
}
else {
header("location: http://www.salus.dk/indexsalus.html");
}
?></p>
</body>
</html>
