Hi everyone, I've had a mobile version of my site for some time but it's only good for people who know the mobile link. I've seen some sites that will redirect a visitor when it detects that they are browsing from a mobile device/browser. Does anyone know how these sites do it? Anyone have a code snippet or link they can share with me? I appreciate any help. Thanks!!
Which language? This might help (if you're looking for a PHP solution): http://www.andymoore.info/php-to-detect-mobile-phones/
Never tried it, but seems to me looking at the client screen size might be a clue that it's a mobile device.
That would require Javascript, and a lot of mobile devices don't support Javascript. Plus it can usually be disabled.
If I remember correctly PHP has a regex for getting the user agent, all you would have to do is use the data retrieved to redirect them.