特别简单,直接上代码 <?php header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.baidu.com"); exit(); ?> 参考: http://www.jb51.net/article/29739.htm