$site="./sizedoctor/sub10.php"; header( "Location: $site" ); exit; $url = $_SERVER["HTTP_HOST"]; if(strstr($url,"sizedoctor.org")){ header( "Location: http://www.sizedoctor.org/sub10.php" ); } elseif(strstr($url,"kegelmaster.co.kr")){ header( "Location: http://www.kegelmaster.co.kr/sub10.php" ); } ?>