如何引导我的用户访问支持 iPhone 的网站?
我已经为我的网站制作了一个 iPhone 友好版本,我想引导我的用户访问该版本。
现在最大的问题是如何引导我的用户访问该网站。有几种替代方案:
- 根据用户代理重定向用户,例如,如果浏览器发送的用户代理包含“iPhone”或 android 或其他内容。
- 如果用户代理符合上述条件,则在原始站点上显示通知,告诉用户有 iPhone 版本可用。
哪一种最人性化?另一个需要考虑的维度是 SEO 方面。如何向 Google 表明我的网站支持 iPhone?
I have made an iPhone friendly version of my site, that I want to direct my users to.
The big question now is how to direct my users to this site. There are a few alternatives:
- Redirect the user based on the user agent, e.g. if the user agent sent by the browser contains "iPhone" or android or whatever.
- If the user agent matches the above criteria, display a notice on the original site telling the user that an iPhone version is available.
Which one is the most user-friendly? Another dimension to consider is the SEO aspect. How do I show Google that my site is iPhone capable?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我最近在 Google 网站站长工具主页上发现了一些相关帖子:
I recently found some relevant posts on the Google Webmaster Tools homepage:
上面的 phidah 有一些很好的链接,但请记住:始终包含一个查看桌面版本的链接。当桌面在 iPhone 上运行得很好时,没有什么比移动版本受到限制更令人沮丧的了。当然也有例外 - 例如,如果您的桌面主要是闪存:p
phidah above has some good links, but remember: always include a link to view the desktop version. nothing is more frustrating than a limited mobile version when the desktop works just fine on the iPhone. there are exceptions, of course - for example if your desktop is mostly flash :p
在我看来,这更多的是一个用户体验问题,而不是一个编程设计决策。我会根据对您的网站和用户有意义的方式构建任一解决方案。如果您确实采用重定向路线,并且两个版本的网站上的内容都是相同的,我就不会太担心谷歌。如果内容不同,我会确保两个网站都对 googlebot 可见。
This strikes me as more of a user experience question than a programming design decision. I would build either solution depending on what makes sense for your site, and your users. If you do go the redirect route, and the content on both version of the site are the same, I wouldn't worry to much about google. If the content is different, I would make sure both sites are visible to googlebot.
几乎我访问的每个网站都有移动/iPhone 版本,它会自动重定向我,然后在底部有一个链接,可以根据需要转到完整版本。
对于搜索引擎优化,我认为这不会造成任何伤害,因为网络爬虫不在移动设备上运行。
Nearly every site that I visit that has a mobile/iPhone version that just redirects me automatically, and then at the bottom there is a link to go to the full version if I want.
For SEO I don't think this would hurt anything, since web crawlers aren't run on mobile devices.
查看下面的链接。
Web 开发工具包
以及有关检测的 CSS 信息
css Info
这是我找到的一些更好的信息,希望它有所帮助。
柯克
Check out the links below.
web dev kit
and for css info on detection
css Info
it is some of the better info I have found, hope it helps.
Kirk