Jump to content

Redirection Script for Mobile/Handhel Visits to your Website


mcmuney

Recommended Posts

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:
[CODE]
if ($_SERVER['HTTP_USER_AGENT'] == "Mobile")
  header("Location:http://mobile.aol.com");
[/CODE]
I'm not quite sure if that if statement will work but it should be something like that. You could try strpos() function too.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.