PDA

View Full Version : how to make mobi phone redirect to your mobi site?



hoangsts
04-28-2008, 11:51 PM
hi all,

i would like to know how mobile users get redirect to my .mobi site when they go to my .com site? is there a code for it?

i meant is there such a code to detect a mobile phone user and redirect to my .mobile site when they enter my .com site?


thnks

coast
04-28-2008, 11:59 PM
I would also like to know... many of us have .com/.mobi pairs and this would be a great thing to do. It doesn't sound like wurfl though, more of a full redirect.

hedgefund
04-29-2008, 01:39 AM
For php, you can do this poor man\'s mobile detection without using device database: 0 || substr_count($user_agent, \"iPod\") > 0) $iPhone = true;?>

hedgefund
04-29-2008, 01:42 AM
For php, you can do this poor man\\\'s mobile detection without using device database: 0 || substr_count($user_agent, \\"iPod\\") > 0) $iPhone = true;?>

Forget it, I am using the proxy to do the post, all my php code was messed up. If you want to know how I handle the detection send me email via PM. I\'ll send the code to you via email.

davemanjra
07-10-2008, 06:31 AM
you could also use a service like www.handsetdetection.com to help you with this.

cobo
07-10-2008, 11:59 AM
Cool! I have not seen this site before.
Thanks, davemanjra and welcome to the forum!
Repped ya too!