![]() |
User Agent Mobile Redirect Code
Anyone care to share their mobile redirect code for .htaccess?
I don't think the one I am useing now is detecting all the devices. |
wow...nobody?
|
I'm not at my computer or I'd share mine.
So here's a bump for you. |
Pretty Please:(
|
You can try this in PHP :
Weorks good for me :) **? IF (strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod')) { header('Location:YOUR-URL-FOR-IPOD-AND-IPHONE'); exit(); } ELSE IF (strstr($_SERVER['HTTP_USER_AGENT'],'iPad')) { header('Location: YOUR-URL-FOR-IPAD'); exit(); } ?** ** = < and > :thumbsup |
Quote:
Code:
#HTACCESS MOBILE SITE REDIRECTION CODE Source |
Quote:
|
Thanks Guys:thumbsup I'll try too.
|
http://detectmobilebrowsers.com/
is up to date and available in all language |
All times are GMT -7. The time now is 12:46 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc