【发布时间】:2014-10-23 07:56:29
【问题描述】:
这两个代码之间有什么不同(对于谷歌机器人等)吗?
PHP:
// 301 Moved Permanently
header("Location: /foo.php",TRUE,301);
exit;
和
.htaccess
RewriteRule ^site1.php$ http://www.example.pl/text.html [R=301,L]
【问题讨论】:
标签: php .htaccess http-status-code-301 redirect