【发布时间】:2013-05-27 14:45:27
【问题描述】:
我的主页调用是'www.xxxx/!#/hear-us'
我想将爬虫重定向到 html 版本调用hear-us.php
我用过
<?php
if (strpos($_SERVER['HTTP_USER_AGENT'],"Googlebot")) {
header('Location: http://xxxx/hear-us.php');
}
?>
当 url 提交给谷歌网站管理员时,它看不到重定向。
【问题讨论】:
标签: php ajax redirect googlebot