Angularjs VS SEO VS pushState的 [英] Angularjs vs SEO vs pushState

查看:169
本文介绍了Angularjs VS SEO VS pushState的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

阅读本<经过href=\"http://stackoverflow.com/questions/13499040/how-do-search-engines-deal-with-angularjs-applications\">thread 我决定在我的angularjs的应用程序,这是完全基于API(独立前端和后端无关)使用pushState的API。

After reading this thread I decided to use pushstate api in my angularjs application which is fully API-based (independent frontend and independent backend).

下面是我的测试网站: http://huyaks.com/index.html

Here is my test site: http://huyaks.com/index.html

我创建了一个网站地图,并上传到谷歌网站管理员工具。

I created a sitemap and uploaded to google webmaster tools.

这是我所看到的:

谷歌收录的主网页,索引的动态导航(酷!),但没有指标
任何动态的URL。
请<一href=\"https://www.google.ru/?gfe_rd=cr&ei=CfMwVIaLIMyBZLHugfgO&gws_rd=ssl#q=site:huyaks.com&newwindow=1&filter=0\"相对=nofollow>一起来看看。

google indexed the main page, indexed the dynamic navigation (cool!) but did not index any of dynamic urls. Please take a look.

我审查了相关话题给出的示例网站:

I examined the example site given in the related thread:

http://html5.gingerhost.com/london

据我所看到的,当我直接访问特定页面是presumed是动态是由服务器,因此它的索引返回的内容。但它在我的情况下是不可能的,因为我的应用程序是完全动态的。

As far as I can see, when I directly access a particular page the content which is presumed to be dynamic is returned by the server therefore it's indexed. But it's impossible in my case since my application is fully dynamic.

你能不能,请指教,有什么问题在我的具体情况,以及如何解决它?

Could you, please, advise, what's the problem in my particular case and how to fix it?

先谢谢了。

请注意:这个问题是关于pushState的方式。请不要劝我使用逃脱片段或3-D方服务,如prerender.io。我想弄清楚如何使用这种方法。

Note: this question is about pushState way. Please do not advise me to use escaped fragment or 3-d party services like prerender.io. I'd like to figure out how to use this approach.

推荐答案

显然昆汀没看过你所指的职务。 http://html5.gingerhost.com/london 的的整点的是它使用pushState的,并证明了它的的要求对蜘蛛的利益静态html​​。

Evidently Quentin didn't read the post you're referring to. The whole point of http://html5.gingerhost.com/london is that it uses pushState and proves that it doesn't require static html for the benefit of spiders.

这个网站使用HTML5 wizrdry [原文]加载的实际内容asynchronusly [原文]到code的其余部分。这使得它为用户提供更快,但它仍然是搜索引擎完全可转位

"This site uses HTML5 wizrdry [sic] to load the 'actual content' asynchronusly [sic] to the rest of the code: this makes it faster for users, but it's still totally indexable by search engines."

狡猾的正字法之外,本演示展示了异步加载的内容索引的。

Dodgy orthography aside, this demo shows that asynchronously-loaded content is indexable.

这篇关于Angularjs VS SEO VS pushState的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆