nope, it works but gets stuck on the firs if statement.
it seems to work fine without the "or"
i.e.
"aaa" ||"aaa.net" fails but "aaa" works?
strange.
i also tired this
switch ($domain) {
case "aaa":
header("Location: http://www.xxx.net.au/aaa.net");
break;
case "bbb":
header("Location: http://www.xxx.net.au/bbb/home.htm");
break;
default:
header("Location: http://www.xxx.net.au");
}
it works but again with the or included it fails..
i.e.
switch ($domain) {
case "aaa" || "aaa.net":
header("Location: http://www.xxx.net.au/aaa.net");
break;
case "bbb" || "bbb.net":
header("Location: http://www.xxx.net.au/bbb/home.htm");
break;
default:
header("Location: http://www.xxx.net.au");
}
this does not work...