智能手机和 Googlebot-mobile 的重定向
我正在为智能手机构建网站的移动版本 (iPhone/Blackberry/Android/WebOS)
,只要用户代理属于上面列出的类型之一(我的移动网站与桌面网站的网址不同),我就想从我的主网站重定向到移动版本。
我的移动版本更像是一个 WebApp,并且不包含与桌面站点相同的内容。
阅读 Google 的这篇文章后,我了解到 Googlebot希望智能手机显示网站的桌面版本(Googlebot-Mobile 不适用于智能手机)
我担心如果我重定向到智能手机的移动版本,Google 会因为隐藏内容而对我进行惩罚,我该如何避免这种情况?
我知道包含从主网站到移动版本的链接会有很大帮助,反之亦然。 关于在为智能手机创建网站的移动版本时如何对谷歌友好的任何其他建议/最佳实践?
I'm building a mobile version of my site for smart-phones
(iPhone/Blackberry/Android/WebOS)
and I want to redirect to the mobile version from my main site whenever the user agent is of one of the kinds listed above (my mobile site is on a different url than my Desktop site).
My mobile version is more like a WebApp and does not contain the same content as the Desktop site.
After reading This Post by Google I understand that the Googlebot expects smartphones to display the Desktop version of the site (Googlebot-Mobile is not used for smartphones)
I'm afraid that if I redirect to the mobile version for smartphones, Google will give me penalty for cloaking, How can I avoid this?
I know that including a link from the main site to the mobile version and vice versa helps a lot.
Any other advice/best practices on how to be google friendly when creating mobile versions of the site for smartphones?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
来自文章:
关键是您提供给 Googlebot 的内容必须保持一致 。机器人和您为用户提供服务的机器人。
该文章的另一个有趣的摘录:
您还可以为基于 UA 字符串的不同页面/内容/样式,如文章中所述:
我认为这一切都归结为内容/样式的不同。如果只是略有不同,我可能会使用相同的 url 来服务两者。如果有很大不同,我会为智能手机使用不同的网址。
希望这有帮助!
From the article:
The key thing is you must be consistent in the content you give to the bot and the one you serve to the user.
Another interesting excerpt from the article:
You can also serve a different page/content/styling based on the UA string, as stated in the article:
I think it all boils down how different the content/styling is. If it's only slightly different, I would probably go with the same url serving both. If it's dramatically different, I would use a different url for smartphones.
Hope this helps!
使用当前信息更新此内容。谷歌现在使用智能手机Googlebot-移动用户代理进行抓取。请参阅:Google 博文
Google 的 SEO PDF 说明了如何避免隐身惩罚。具体请参阅第 27 页。请参阅:SEO PDF
要点是,您为桌面用户提供的内容可以与您为移动用户提供的内容不同,只要 Googlebot 始终提供与您提供的内容相同的内容向任何桌面用户提供,并且 Googlebot-Mobile 始终提供与向任何移动用户提供的相同内容。为了遵守这一点,在我看来,您不应该将您的网站配置为基于在用户代理中查找“Googlebot-Mobile”来提供移动内容。该机器人将提供一个典型的智能手机用户代理字符串作为其自己的用户代理的一部分 - 这是值得依赖的部分,否则如果出现您尚未考虑的新设备,您将向其提供桌面内容,但将移动内容发送给 Googlebot-Mobile 来模仿该设备。
Updating this with current information. Google now crawls with a smartphone Googlebot-Mobile user agent. See: Google blog post
Google's SEO PDF explains how to avoid cloaking penalties. Specifically, see Page 27. See: SEO PDF
The gist is, the content you serve a desktop user can be different from the content you serve a mobile user, as long as Googlebot is always served the same content you serve to any desktop user, and Googlebot-Mobile is always served the same content you serve to any mobile user. To abide by this, it seems to me you should not configure your site to serve mobile content based on finding "Googlebot-Mobile" in the user agent. The bot will supply a typical smartphone user agent string as part of it's own user agent--that's the part to rely on, or else if a new device comes out that you do not yet account for, you'll serve desktop content to it, but mobile content to Googlebot-Mobile impersonating that device.
您可以为您的移动网站使用子域,并将谷歌移动机器人与智能手机一起重定向到那里
You could use subdomain for your mobile site and redirect google mobile bot there together with smartphones