SEO Ajax 和 Asp.net MVC
我正在搞乱如何让 Google 为 Ajax 内容建立索引。
我想澄清我在这里发布的想法,直到我明白:
显然我们必须向谷歌提供一个“漂亮”的网址来索引,例如/content/contentdetail#!id=0123456。
另一方面,我们必须为这个漂亮的网址提供 Html 片段,而不是完整的页面。
我们必须在页面中放置一个标签,向 Google 表明我们将使用这个漂亮的网址:
你能解释一下它是如何工作的吗?它是唯一的客户端 JavaScript 编程,我应该做什么来实现它,或者服务器呢?我必须创建一个路由来处理这种类型的网址?
我有一种感觉,我太乱了。
I'm messing a little about how to allow Google to index Ajax content.
I would like to clarify my ideas posting here until i understood:
Apparently we have to provide to google a "pretty" url to index like /content/contentdetail#!id=0123456.
For other hand we have to serve Html fragments for this pretty urls instead complete pages.
We have to put in the page a tag to indicate to google that we will use this pretty urls:
<meta name="fragment" content="!">
Could you explain me how it works? its only client javascript programming what i should do to implement it, or server too? I have to create a route for handle this types of urls?
I have the feeling that I'm messing too much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在处理这些东西时,我们总是创建不支持 javascript 的页面版本,这涵盖了禁用 Javascript 以及所有搜索引擎,而不仅仅是针对 google。此外,无论搜索引擎发生什么变化,我们都不必更改我们的代码或网站的工作方式,因为我们没有为搜索引擎制作它,我们为没有 JavaScript 的用户制作网站。
对于SEO来说,谷歌看到你的内容并不重要,重要的是内容总是在变化并且是相关的,如果你能让它改变,那么谷歌就会爱你,因为它是一个渴望数据的怪物,只想不断地喂养和喂养。
希望这有帮助
on dealing with this stuff we have always created none javascript enabled versions of pages this covers for Javascript being disabled and also for all search engines too rather than just working towards google. also no matter what changes with search engines we dont have to change our code or how the site works because we dident make it for a search engine, we make the site for users without javascript.
also with SEO it is not important that google see's your content, what is important is that the content changes always and is relevant, if you can make it change then google will love you because it is a data hungry monster that just wants feeding and feeding.
hope this helps
Google 整理了完整的内容,逐步引导您完成整个过程
https://developers.google.com /webmasters/ajax-crawling/
您是否尝试按照他们的指示进行操作?
Google put together thorough to walk you through the process step by step
https://developers.google.com/webmasters/ajax-crawling/
Did you try following their instructions?