if($Array_301[$OldUrl]){ header('HTTP/1.1 301 Moved Permanently');//发出301头部 header('Location:http://'.$Array_301[$OldUrl]);//跳转到带www的网址 exit; }