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