HTTP 状态(Status) 301 和 302 ? PHP 程序要怎么写

HTTP 301 范例(PHP)


<?php
header('HTTP/1.1 301 Moved Permanently');
header('Location: http://plog.longwin.com.tw/');
exit;
?>

HTTP 302 范例(PHP)


<?php
header("Location: http://plog.longwin.com.tw/");
exit;
?>

posted @ 2013-09-05 15:42  哲学梦  阅读(433)  评论(0编辑  收藏  举报