谷歌 SEO 与 AJAX
在这个 URL (http://code.google.com/web/ajaxcrawling/docs/getting-started.html) 上,Google 表示:
“您可以离线创建页面的静态版本,就像当前的做法一样。例如,许多应用程序从数据库中提取内容,然后由浏览器呈现,您可以为每个 AJAX URL 创建一个单独的 HTML 页面。”
假设您的页面中有一个部分用于显示分页内容,例如通知。当您单击“3”时,它会显示通知的第三页,但使用 AJAX 动态更新页面的该部分。假设数据是从 my.domain.com/notifications/3 检索的,
我被告知 Google 将禁止您使用相同的 URL 为非 AJAX 请求提供不同的数据视图。因此,如果您直接访问 my.domain.com/notifications/3(而不是通过 AJAX)并返回显示这些通知的 HTML 文档,您可能会被禁止。
准确吗?提供相同数据的不同格式/视图有哪些规则/限制?我是否可以针对 AJAX 请求以 JSON 或 XML 形式返回通知,但针对非 AJAX 请求返回 HTML,以便用户可以直接对其进行爬网和查看?
At this URL (http://code.google.com/web/ajaxcrawling/docs/getting-started.html) Google says:
"You can create a static version of your pages offline, as is the current practice. For example, many applications draw content from a database that is then rendered by the browser. Instead, you may create a separate HTML page for each AJAX URL."
Let's say you have a section of your page for displaying paged content, such as notifications. When you click "3" it shows you the 3rd page of notifications, but uses AJAX to dynamically update that part of the page. And let's say that data gets retrieved from my.domain.com/notifications/3
I was told that Google would ban you for providing a different view of that data using the same URL for non-AJAX requests. So if you go to my.domain.com/notifications/3 directly (not via AJAX) and return an HTML document showing those notifications, you could get banned.
Is that accurate? What are the rules/limits as far as providing different formats/views of the same data? Could I get away with returning the notifications as JSON or XML for AJAX requests, but return HTML for non-AJAX requests so it can be crawled and viewed directly by users?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只要您按照 Google 的说明进行操作就可以了。
相同数据的不同视图很好。如果你尝试向机器人提供不同的数据。
As long as you follow Google's instructions you will be OK.
A different view of the same data is fine. It's if you try and provide different data to robots.