加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php – Ajax Fragment Meta标签 – Googlebot没有阅读页面的内容

发布时间:2020-12-13 16:42:16 所属栏目:PHP教程 来源:网络整理
导读:我已经阅读了一篇文章,教你如何使我的ajax页面被搜索引擎机器人抓取,当我使用片段url#!,但是现在我试图创建一个没有片段的“主页”使用元标记在下面: meta name =“fragment”content =“
我已经阅读了一篇文章,教你如何使我的ajax页面被搜索引擎机器人抓取,当我使用片段url#!,但是现在我试图创建一个没有片段的“主页”使用元标记在下面:

< meta name =“fragment”content =“!” /> 而我正在使用代码片段来了解googlebot发生了什么.

<?php
if( isset( $_GET['_escaped_fragment_'] ) )
{
    echo "Crawler is gonna read that page!";
}
?>

事实是机器人没有在_escaped_fragment_语句内返回任何值.

这里是到页面的链接:http://www.linkerama.com/novo/

当我使用浏览器时,这个值返回一个值:http://www.linkerama.com/novo/?_escaped_fragment_=

你怎么测试这个?如果您在下面阅读“使用Google抓取”.

报价由http://productforums.google.com/forum/#!category-topic/webmasters/crawling-indexing–ranking/bZgWCJTnl08%5B1-25%5D由John Mueller(Google员工)

Looking at your blog’s homepage,one thing to keep in mind is that the Fetch as Googlebot feature does not parse the content that it fetches. So when you submit toddmoyer.net/blog/,it fetches that URL. After fetching the URL,it doesn’t parse it to check for the “fragment” meta tag,it just returns it to you. However,if you fetch toddmoyer.net/blog/#!,then it should rewrite the URL and fetch the URL toddmoyer.net/blog/?_escaped_fragment_= .

When we crawl and index your pages,we’ll notice the meta-tag and act accordingly. It’s just the Fetch as Googlebot feature that doesn’t check for meta-tags,and instead just returns the raw content.

希望有帮助.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读