- Has been a member for 4-5 years
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Sold between 50 000 and 100 000 dollars
- Microlancer Beta Tester
- Community Moderator
- Interviewed on the Envato Notes blog
- Author was Featured
- Bought between 1 and 9 items
- Referred between 50 and 99 users
Hey guys, You must know this better than I do.
I’m developing a Flash site, and I have developed a HTML website as well.
I’ve noticed several sites that know when you use a mobile phone and they auto-redirect you to the mobile version of the site.
How is this done? Did anyone ever have such a client, if so, please tell me how is this possible.
- Has been a member for 4-5 years
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Sold between 50 000 and 100 000 dollars
- Microlancer Beta Tester
- Community Moderator
- Interviewed on the Envato Notes blog
- Author was Featured
- Bought between 1 and 9 items
- Referred between 50 and 99 users
Anyone?
- Australia
- Bought between 10 and 49 items
- Has been a member for 4-5 years
- Referred between 1 and 9 users
Mobile phone browsers have different user agent strings, so you inspect the user agent and redirect if it matches a mobile browser
Hey guys, You must know this better than I do.I’m developing a Flash site, and I have developed a HTML website as well.
I’ve noticed several sites that know when you use a mobile phone and they auto-redirect you to the mobile version of the site.
How is this done? Did anyone ever have such a client, if so, please tell me how is this possible.
You can use this script for html version of the site, worked great for me.
Enjoy
http://mobility.mobi/showthread.php?22-Auto-detecting-PC-Mobile-and-then-Redirecting
Joe Hudson
- Bought between 10 and 49 items
- Exclusive Author
- Has been a member for 5-6 years
- Sold between 1 000 and 5 000 dollars
its better to control this sort of thing on a web server level via the .htaccess file simply for the sake for speed. try the following (you can add user agents to your hearts content),
RewriteCond %{HTTP_USER_AGENT} “Windows CE” [NC,OR] #Windows CE and Pocket PC RewriteCond %{HTTP_USER_AGENT} “NetFront” [NC,OR] #PalmSource WebBrowser 2.0 RewriteCond %{HTTP_USER_AGENT} “Palm OS” [NC,OR] #Eudora Web Browser for Palm RewriteCond %{HTTP_USER_AGENT} “Blazer” [NC,OR] #Handspring Blazer Browser RewriteCond %{HTTP_USER_AGENT} “Elaine” [NC,OR] #RIM Devices RewriteCond %{HTTP_USER_AGENT} “^WAP.*$” [NC,OR] #WAP Browsers RewriteCond %{HTTP_USER_AGENT} “Plucker” [NC,OR] #Plucker Offline download client RewriteCond %{HTTP_USER_AGENT} “AvantGo” [NC] #AvantGo Service RewriteRule ^index.php http://www.yourdomain.net/pda.php [L,R]
- Has been a member for 4-5 years
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Sold between 50 000 and 100 000 dollars
- Microlancer Beta Tester
- Community Moderator
- Interviewed on the Envato Notes blog
- Author was Featured
- Bought between 1 and 9 items
- Referred between 50 and 99 users
i posted it 7 months ago
i figured it out 
Enabled SAYS Anyone? POSTED 7 MONTHS AGO REPLY WITH QUOTE | REPORT | PERMALINK
I’ll admit I’m not versed in this. However, am I reading correctly that i will have to create a SECOND website for mobile users only and use it in conjunction with relevant code or is the code enough?
Where exactly do I put this code? Anyone have a screenshot of where and how to put the code?
I need help. Thanks.
- Has been a member for 4-5 years
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Sold between 50 000 and 100 000 dollars
- Microlancer Beta Tester
- Community Moderator
- Interviewed on the Envato Notes blog
- Author was Featured
- Bought between 1 and 9 items
- Referred between 50 and 99 users
I’ll admit I’m not versed in this. However, am I reading correctly that i will have to create a SECOND website for mobile users only and use it in conjunction with relevant code or is the code enough?Where exactly do I put this code? Anyone have a screenshot of where and how to put the code?
I need help. Thanks.
Contact me trough my profile for more infornation.
If you are using SWFobject, this can be done very easily with a div. If the user browser supports flash, than the flasht content is displayed and if the user browser doesn’t support flash, it displays the html version of the site. send me a msg if you want the full code.
- Has been a member for 4-5 years
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Sold between 50 000 and 100 000 dollars
- Microlancer Beta Tester
- Community Moderator
- Interviewed on the Envato Notes blog
- Author was Featured
- Bought between 1 and 9 items
- Referred between 50 and 99 users
Old thread! Locked! 
