1 | 1 . <? |
2 | 2 . Header( "HTTP/1.1 301 Moved Permanently" ) ; |
3 | 3 . Header( "Location: http://www.ttkea.cn" ); //设置首页的转移地址 |
4 | 4 . ?> |
301精确重定向
1 | 1 . <?php |
2 | 2 . header( "HTTP/1.1 301 Moved Permanently" ); |
3 | 3 . header( "Location: http://www.ttkea.cn/" .$_SERVER "REQUEST_URI" ]); //设置精确转移地址 |
4 | 4 . ?> |
没有评论:
发表评论