$aryDomain = explode('.' , $_SERVER["SERVER_NAME"]); if ($_SERVER['HTTP_HOST'] == 'www.ihltv.com') { header("Location: ".BASE_EXT.substr($_SERVER[REQUEST_URI],1)); } switch (strtolower($aryDomain[0])) { case "dignifieddeparture": case "forum": case "italk": case "ihealthcare": case "ilove": case "ipet": case "today": case "friends": case "petscare": case "other": header("Location: ".URL."forum.php"); break; case "ticfriends": case "ticfirends": header("Location: ".URL."/friends/"); break; case "euthanasia": header("Location: http://www.euthanasiawill.com/"); break; case "stream": case "live": header("Location: ".URL."index.php?tvu=1"); break; case "ws": header("Location: ".URL."ws/"); break; case "www": break; case "video": break; default: header("Location: ".URL); break; } ?>