Identifying different mobile handsets and redirecting to different websites [duplicate]
Asked Answered
I

1

1

Possible Duplicate:
Standard way to detect mobile browsers in a web application based on the http request

I have 3 mobile versions of a website and would like to present each to different handset models according to what they support. One version is monochromatic WML, another is color WML and another is XHTML for mobile.

What's the best way to identify the device in the request and know if it supports a version or another?

Idealism answered 14/11, 2008 at 22:9 Comment(1)
Check this.Stith
I
2

Check the User-Agent HTTP header on the inbound request and either use it to trigger a HTTP Redirect, or if you're using Apache use mod_rewrite and a RewriteCond to vary the result based on the User-Agent without requiring the extra HTTP roundtrip that a redirect uses.

Interject answered 15/11, 2008 at 6:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.