【发布时间】:2014-03-06 15:09:45
【问题描述】:
我有一个单页应用程序,它应该使用#!(哈希爆炸)进行导航。我现在在Making AJAX Applications Crawlable 上阅读了谷歌的规范。如何测试我的应用程序是否以所需的方式工作?
我在google plus debugger 中输入了我的应用程序,例如http://www.mysite.org/de#!foo=bar。但是,apache 的访问日志告诉我,谷歌爬虫不会将 #! 转换为 _escaped_fragment_,因此谷歌调试器仍然会在没有哈希爆炸的情况下检索 /de:
66.249.81.165 - - [06/Mar/2014:15:54:06 +0100] "GET /de HTTP/1.1" 200 177381 "Mozilla/5.0 (compatible; X11; Linux x86_64; Google-StructuredDataTestingTool; +http://www.google.com/webmasters/tools/richsnippets)"
(注意:GET /de 仍然没有 _escaped_fragment_ hash 片段)。我希望谷歌能够检索到这样的东西:
... "GET /de?_escaped_fragment_ mapping HTTP/1.1" ...
【问题讨论】:
标签: ajax google-plus single-page-application google-search-console google-crawlers