Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个 Cocoon 网站:ABC 和 ABC-mobile。
如果用户来自移动浏览器,那么我希望他们重定向到 ABC-mobile。我该如何做到这一点?
您需要检测用户代理。在 Cocoon 中,Browser-Selector组件正是这样做的(您将浏览器名称与站点地图中的用户代理相关联 - 请参阅文档)。
Browser-Selector