Generally a poor method. Think of the Spiders coming to your site only to be redirected to the mobi :otm said:http://hotscripts.com/jump.php?listing_id=60311&jump_type=0
Basically just checks through all the normal browsers used on PCs, and then if it's not any of them it'll redirect.
Hope it's useful, you might need to work a little bit on the opera bit, as there's a mobile browser for opera (although I'm unsure on its http headers).
rep appreciated.
stscac said:Generally a poor method. Think of the Spiders coming to your site only to be redirected to the mobi :o
Try this
-Steve
Nope. You just have to use a mirror.tm said:/edit nevermind, it's free. Swear it was paid last time.
Definitely some good advice as well.enlytend said:You may also want to check out WURFL and its libraries. Last I heard it was the recommended way to detect mobile browser and device capabilities.
There's a simple example of using it to redirect depending on whether it finds a mobile or non-mobile browser on pc.dev.mobi

