如何将桌面用户从移动网站重定向到常规网站?
当他们发现 Google 中列出的移动网站时,如何嗅出桌面用户并将他们发送到常规(非移动)网站?
感谢您的任何见解!
How can I sniff out desktop users and send them to regular (non-mobile) site when they find the mobile site listed in google?
Thank you for any insight!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以检查 HTTP 标头以了解用户正在使用的浏览器类型并重定向到正确的站点。它还有一个漂亮的框架; http://detectmobilebrowsers.mobi/
You can check the HTTP-headers for the type of browser the user is using and redirect to the correct site. There is also a nifty framework for it; http://detectmobilebrowsers.mobi/
Dave,
Google 上有一篇关于此的非常有趣的文章中央。你应该检查一下。
虽然我知道它不能回答您的问题,但它完全值得一读。由于我也在追求同样的目标,如果您能与我们分享您找到的摆脱困境的方法,我将不胜感激。
顺便问一下,您可以在这里发布您的网站 URL 供我们其他人查看吗? :-)
Dave,
There's a really interesting article about it on Google Central. You should check it out.
While I'm aware that it doesn't answer your question, it's totally worth reading. As I'm on this very same quest, I'd appreciate if you could share with us whatever way out of this predicament you get to find.
By the way, can you post your website URL here for the rest of us to see? :-)
您可以反向使用 www.handsetdetection.com 将人们从您的移动网站重定向回您的标准网站。
You could use www.handsetdetection.com in reverse to redirect people from your mobile site back to your standard site.