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

Android One vs Android Silver vs Google Nexus: What is the difference?

IDG UK Sites

2014 Mac mini release date, specs, rumours: When's the new Mac mini coming out?

IDG UK Sites

Long live the internet fridge: the Internet of Things is coming

IDG UK Sites

How Prometheus' colourist Juan Ignacio Cabrera gave a tense, edgy feel to Chosen