mobile redirect php script

ashcares's Avatar, Join Date: May 2009
Newbie Member
Hi there,

I was hoping someone might help me edit this mobile redirect code posted at:

so that it includes IPhones with the redirecting process.

Any suggestions?

FYI - Besides this minor exception, it is quite an effective code for redirecting mobile phones. You can try it for yourself, simply enter the following URL into your mobile:




Last edited by shabbir; 25May2009 at 10:56.. Reason: Self promotion
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Keep your Self promoting urls into signatures only.
pradeep's Avatar, Join Date: Apr 2005
Team Leader
Code: PHP
if(preg_match("/iphone/i",$_SERVER["HTTP_USER_AGENT"])) return false;

Add 'iphone' to $uamatches array