$var = $_SERVER['REQUEST_URI'];header( "HTTP/1.1 301 Moved Permanently" ) ;header("Location:http://www.CodeSnippet.Cn".$var);exit;//该片段来自于http://www.codesnippet.cn/detail/200120148581.html
来源: http://www.codesnippet.cn/detail/200120148581.html