Home >php教程 >php手册 >PHP实现301跳转

PHP实现301跳转

WBOY
WBOYOriginal
2016-06-06 19:32:21897browse

无详细内容 无 $var = $_SERVER['REQUEST_URI']; header( "HTTP/1.1 301 Moved Permanently" ) ; header("Location:http://www.muyangcheng.com".$var); exit;

        $var = $_SERVER['REQUEST_URI'];
        header( "HTTP/1.1 301 Moved Permanently" ) ;
        header("Location:http://www.muyangcheng.com".$var);
        exit;
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn