<?
$s = $_SERVER['QUERY_STRING'];
if ($s == "http://www.baidu.com")
{
$s = http://www.innovatechautomation.com;
}
if ($s == "http://www.163.com")
{
$s = "http://www.innovatechautomation.com";
}
header("Location:".$s."");
?>
一般都是用 header , 稍微高級點的還要在header 再加上其它的東西