Page 1 of 1

php mobile redirect

Posted: Mon Nov 07, 2011 12:26 pm
by ebgames56
What is the code for a mobile device such as Iphone, Ipad and ipod touch to visit a site and have it redirected

Re: php mobile redirect

Posted: Mon Nov 07, 2011 12:34 pm
by Celauran
Check their user agent against a list of know mobile user agents and redirect as appropriate.

Re: php mobile redirect

Posted: Mon Nov 07, 2011 12:42 pm
by ebgames56
where do i get the user agent list

Re: php mobile redirect

Posted: Mon Nov 07, 2011 12:46 pm
by Celauran
ebgames56 wrote:where do i get the user agent list
Google.

The Apache Mobile Filter might also be of interest.

Re: php mobile redirect

Posted: Mon Nov 07, 2011 12:49 pm
by ebgames56
I have used google and tells me nothing

Re: php mobile redirect

Posted: Mon Nov 07, 2011 12:52 pm
by ebgames56
i get some port 80 error