We use cookies to provide you with a better experience. If you continue to use this site, we'll assume you're happy with this. Alternatively, click here to find out how to manage these cookies

hide cookie message
Contact Forum Editor

Send an email to our Forum Editor:


PLEASE NOTE: Your name is used only to let the Forum Editor know who sent the message. Both your name and email address will not be used for any other purpose.

Tech Helproom


It's free to register, to post a question or to start / join a discussion


 

Mobile phone browser redirect script


HighTower

Likes # 0

Anyone know of one that works well? A simple detect and redirect to a specified page if the user is on a mobile phone browser is all I require.

Thanks.

Like this post
Kemistri

Likes # 0

If you need to redirect the user (presumably because your layout cannot simply be shrunk down to fit a tiny screen) then you can write (or download an off-the-shelf) PHP user agent detection script. click here for one example that is supposed to be pretty up to scratch. If you don't need the redirect, use media type statements in your style sheet links. Please keep in mind the fact that user agent reporting is flexible and therefore its detection can be patchy. For that reason, I avoid it.

Like this post
HighTower

Likes # 0

I'll give it a go, thanks very much for the link.

Like this post

Reply to this topic

This thread has been locked.



IDG UK Sites

Best January sales 2015 UK tech deals LIVE: Best New Year bargains and savings on phones, tablets,...

IDG UK Sites

Chromebooks: ready for the prime time (but not for everybody)

IDG UK Sites

Hands-on with Sony's latest smartglasses

IDG UK Sites

Apple TV expert tips: get US Apple TV content, watch Google Play, use multiple Apple IDs and more