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:
pcmechanix.ca/mobile_redirect.htm

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:

<<Snipped>>

Thanks,

Ash
Webmaster

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

Add 'iphone' to $uamatches array