Mobile Redirect Code Update

DEPRECIATED – For an up-to-date version of the Studio Hyperset PHP mobile redirect script, please visit SH‘s Google code project site. To read more about the script, please visit this hyper/boʊl/e post and the mobile redirect code discussion index.

Thanks to a helpful hint from Danielle, the following code strings need to be inserted into the mobile.php code previously discussed.

$_SERVER['HTTP_USER_AGENT']=='SAMSUNG-SGH-D900') {
header("location: $mobile"); } elseif(
$_SERVER['HTTP_USER_AGENT']=='SAMSUNG-SGH-D900/1') {
header("location: $mobile"); } elseif(

This will ensure the automatic redirection of Samsung D900 devices.

I’m still having trouble redirecting Blackberry devices so anyone wishing to post a suggestion or email it to info@studiohyperset.com is most welcome to do so.

Exit mobile version