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

前端之家收集整理的这篇文章主要介绍了php – Ajax Fragment Meta标签 – Googlebot没有阅读页面的内容前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我已经阅读了一篇文章,教你如何使我的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.

希望有帮助.

猜你在找的PHP相关文章