1 2 3 4 5 6 7 |
// Redirect iPhone/iPod visitors if(strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') || strpos($_SERVER['HTTP_USER_AGENT'], 'iPod')){ header("Location: http://codehaven.com/iphone.php"); } |
Please comment if you have used this as I haven’t had time to fully test it!