智能手机和 Googlebot-mobile 的重定向

发布于 2024-11-06 19:57:59 字数 505 浏览 0 评论 0原文

我正在为智能手机构建网站的移动版本 (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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

苯莒 2024-11-13 19:57:59

来自文章:

对于 Googlebot 和 Googlebot-Mobile,URL 结构是什么并不重要,只要它返回的正是用户所看到的内容即可。

关键是您提供给 Googlebot 的内容必须保持一致 。机器人和您为用户提供服务的机器人。

该文章的另一个有趣的摘录:

目前,我们希望智能手机能够处理桌面体验内容,因此网站管理员不需要专门针对移动设备进行工作。然而,对于许多网站来说,针对智能手机采用不同的内容格式可能仍然有意义,并且这样做的决定应该基于如何最好地为用户服务。

您还可以为基于 UA 字符串的不同页面/内容/样式,如文章中所述:

如果您从 www.example.com 提供所有类型的内容,即根据用户代理从同一网址提供桌面优化内容或移动优化内容,这也会导致 Googlebot 和 Googlebot 正确抓取-移动的。 Google 不会将此视为隐藏内容。

我认为这一切都归结为内容/样式的不同。如果只是略有不同,我可能会使用相同的 url 来服务两者。如果有很大不同,我会为智能手机使用不同的网址。

希望这有帮助!

From the article:

For Googlebot and Googlebot-Mobile, it does not matter what the URL structure is as long as it returns exactly what a user sees too.

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:

For now, we expect smartphones to handle desktop experience content so there is no real need for mobile-specific effort from webmasters. However, for many websites it may still make sense for the content to be formatted differently for smartphones, and the decision to do so should be based on how you can best serve your users.

You can also serve a different page/content/styling based on the UA string, as stated in the article:

If you serve all types of content from www.example.com, i.e. serving desktop-optimized content or mobile-optimized content from the same URL depending on the User-agent, this will also lead to correct crawling by Googlebot and Googlebot-Mobile. This is not considered cloaking by Google.

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!

握住你手 2024-11-13 19:57:59

使用当前信息更新此内容。谷歌现在使用智能手机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.

枕梦 2024-11-13 19:57:59

您可以为您的移动网站使用子域,并将谷歌移动机器人与智能手机一起重定向到那里

You could use subdomain for your mobile site and redirect google mobile bot there together with smartphones

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文