![]() |
Mobile Redirect Code
this is the mobile detection code I use in my htaccess file. Am I missing any OS? What do you use?
RewriteCond %{HTTP_USER_AGENT} ^.*iphone|ipod|ipad|blackberry|android|sgh|sonyeri csson|psp|mot|htc|lg|nokia|palm|treo|j2me|webos|sm artphone|symbian.*$ [NC] |
When someone sends me to their mobile site on my Android phone I go elsewhere... I have a 800x600 pixel screen and I can surf regular sites just fine...
|
The purpose is to sell the mobile traffic not to make the surfer happy.
|
mobile|android|blackberry|brew|cldc|docomo|htc|j2m e|micromax|lg|midp|mot|motorola|netfront|nokia|obi go|openweb|opera.mini|palm|psp|samsung|sanyo|sch|s onyericsson|symbian|symbos|teleca|up.browser|vodaf one|wap|webos|windows.ce
That should cover everything.. or close to it. |
Quote:
Thanks Yngwie! |
redirect immediately to a page that says "Mobile optimised" or "Full site" and a cookie.etc to remember their preference the next time. I've got it on a php include rather than .htaccess so can decide easier on what to do with them
|
Quote:
:thumbsup:thumbsup:thumbsup |
Quote:
|
Quote:
|
Quote:
|
All times are GMT -7. The time now is 10:07 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc