由于我的网站不是一个完整的单页应用程序,我直接选择了第三步.在我的路径文件中,我所做的是,如果我看到一个?_escaped_fragment_ =参数,我将返回一个自定义模板文件,该文件将包含服务器生成的内容. (所以它应该可以爬行,对吗?)
这是一个例子:
http://example.com/topic/Health/Conditions_and_Diseases
此页面使用ajax调用从服务器获取详细信息并更新视图. (我在此页面中包含了Meta name =“fragment”content =“!”元标记)因此Google抓取工具应该转到:
http://example.com/topic/Health/Conditions_and_Diseases?_escaped_fragment_=
?????
这是正确的设置吗?但是当我尝试在网站站长工具中获取此页面时,它不会加载任何内容.提取工具一直在说挂起并以错误结束(显示它遇到错误需要很长时间,但没有提到错误.)我通过手动访问每个URL确保这两个版本都正常工作.在我实现之前,Fetch工具实际上显示了没有内容的页面图像.所以现在我期待看到内容.但不知道为什么它花了很长时间才会出错.
有人可以解释一下我做错了哪一部分?关于?_escaped_fragment_ =参数是否正确?
先感谢您.
解决方法
只有抓取工具真正抓取时,抓取工具才会抓取快照网址.显然这是现在的正确答案.希望这将有助于未来的其他人.
Hi Todd It’s good to see more sites using the AJAX crawling proposal
:-)!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 07001,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
07002!,then it should rewrite the URL and
fetch the URL 07003 .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.I hope that makes it a bit clearer!
Cheers John
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。