Redirection Script for Mobile/Handhel Visits to your Website
2 replies to this topic
Posted 08 August 2006 - 06:24 PM
Is there a script that will redirect handheld visitors to a different webpage. For example, if you visit aol.com using your mobile, you'll see it redirects you to mobile.aol.com. Anyone have that script???
Bidding Web Directory | Bid Directory | Rate Photos | Free Image Hosting | Check Page Rank | Save on Gas | Cheap Used Cars | Snitch
Posted 09 August 2006 - 08:58 AM
I guess that User agent can be used for that. As the browser you use in your mobile and the browser in your desktops are different. As php you can use something like:
if ($_SERVER['HTTP_USER_AGENT'] == "Mobile") header("Location:http://mobile.aol.com");I'm not quite sure if that if statement will work but it should be something like that. You could try strpos() function too.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users