"; //echo $SiteNameURL1; $SiteNameURL = $_SERVER['HTTP_HOST']; //echo "host is $SiteNameURL"; $SiteNameURL1 = $_SERVER['SERVER_NAME']; switch (strtolower($SiteNameURL)) { case "pdf.hardfacetechnologies.com": //MUST BE LOWER CASE header("Location: http://" . $_SERVER['HTTP_HOST'] ."/postle_hft/hello_world.php"); break; case "hardbandingsolutions.com": //MUST BE LOWER CASE header("Location: http://" . $_SERVER['HTTP_HOST'] . "/postle/index_pi.php"); break; case "www.hardbandingsolutions.com": //MUST BE LOWER CASE header("Location: http://" . $_SERVER['HTTP_HOST'] . "/postle/index_pi.php"); break; case "incentivespecialties.com": //MUST BE LOWER CASE header("Location: http://" . $_SERVER['HTTP_HOST'] . "/isc/main/index_12-29-08.php"); break; case "www.incentivespecialties.com": //MUST BE LOWER CASE header("Location: http://" . $_SERVER['HTTP_HOST'] . "/isc/main/index_12-29-08.php"); break; case "xolutioncommunications.com": //MUST BE LOWER CASE header("Location: http://" . $_SERVER['HTTP_HOST'] . "/xo/index4_xo.php"); break; case "www.xolutioncommunications.com": //MUST BE LOWER CASE header("Location: http://" . $_SERVER['HTTP_HOST'] . "/xo/index4_xo.php"); break; case "hardbandingsolutions.ru": //MUST BE LOWER CASE header("Location: http://" . $_SERVER['HTTP_HOST'] . "/postle_trn/index_pi_ru.php"); break; case "www.hardbandingsolutions.ru": //MUST BE LOWER CASE header("Location: http://" . $_SERVER['HTTP_HOST'] . "/postle_trn/index_pi_ru.php"); break; case "hardbandingsolutions.cn": //MUST BE LOWER CASE header("Location: http://" . $_SERVER['HTTP_HOST'] . "/postle_cn/index_pi_cn.php"); break; case "www.hardbandingsolutions.cn": //MUST BE LOWER CASE header("Location: http://" . $_SERVER['HTTP_HOST'] . "/postle_cn/index_pi_cn.php"); break; case "hardbandingsolutionschina.cn": //MUST BE LOWER CASE header("Location: http://" . $_SERVER['HTTP_HOST'] . "/postle_cn/index_pi_cn.php"); break; case "www.hardbandingsolutionschina.cn": //MUST BE LOWER CASE header("Location: http://" . $_SERVER['HTTP_HOST'] . "/postle_cn/index_pi_cn.php"); break; case "survoysrefrigeration.com": //MUST BE LOWER CASE header("Location: http://" . $_SERVER['HTTP_HOST'] . "/survoys/index_sss.php"); break; case "www.survoysrefrigeration.com": //MUST BE LOWER CASE header("Location: http://" . $_SERVER['HTTP_HOST'] . "/survoys/index_sss.php"); break; case "superiorpneumatic.com": //MUST BE LOWER CASE header("Location: http://" . $_SERVER['HTTP_HOST'] . "/superior_pneumatic/index.html"); break; case "www.superiorpneumatic.com": //MUST BE LOWER CASE header("Location: http://" . $_SERVER['HTTP_HOST'] . "/superior_pneumatic/index.html"); break; case "www.xolutioncommunications.com/slideshow/test_slideshow_w_controls_server.html": //MUST BE LOWER CASE header("content-type: application/x-javascript;"."Location: http://" . $_SERVER['HTTP_HOST'] . "/xo/slideshow/test_slideshow_w_controls.html"); break; case "www.americanlocksmiths.net": //MUST BE LOWER CASE header("Location: http://" . $_SERVER['HTTP_HOST'] . "/am_lock/index.html"); break; case "americanlocksmiths.net": //MUST BE LOWER CASE header("Location: http://" . $_SERVER['HTTP_HOST'] . "/am_lock/index.html"); break; case "www.berealocksmiths.com": //MUST BE LOWER CASE header("Location: http://" . $_SERVER['HTTP_HOST'] . "/am_lock/index_berea_l.html"); break; case "berealocksmiths.com": //MUST BE LOWER CASE header("Location: http://" . $_SERVER['HTTP_HOST'] . "/am_lock/index_berea_l.html"); break; case "subdomain1.domain.com": //MUST BE LOWER CASE header("Location: http://" . $_SERVER['HTTP_HOST'] . "/page3.php"); break; case "subdomain2.domain.com": //MUST BE LOWER CASE header("Location: http://" . $_SERVER['HTTP_HOST'] . "/page4.php"); break; //default: //header("Location: http://" . $_SERVER['HTTP_HOST'] . "/other.php"); } ?> Untitled Document