Google crawler不会翻译#!到AJAX应用程序中的_escaped_fragment_映射



我有一个单个页面应用程序,该应用程序应该使用 #!(hash bang)进行导航。现在,我阅读了Google关于使Ajax应用程序可爬网的规范。如何测试我的应用程序以必需的方式工作?

我在Google Plus调试器中输入了我的应用程序,例如http://www.mysite.org/de#! foo=bar。但是,Apache的访问日志告诉我,然后Google搜寻器不会将#!转换为_escaped_fragment_,因此Google调试器仍然可以检索/de,而没有Hash Bang:

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片段)。我希望Google取回这样的东西:

... "GET /de?_escaped_fragment_ mapping HTTP/1.1" ...
据我所知,

_escaped_fragment_ = with = the the the en。您是否尝试过:

<meta name="fragment" content="!" />

在您的HTML头上?

最新更新