4149 posts Community Mod Building awesome stuff for your mobile devices!
  • Community Moderator
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Interviewed on the Envato Notes blog
  • Author had a Free File of the Month
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
+9 more
Enabled Volunteer moderator says

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.

4149 posts Community Mod Building awesome stuff for your mobile devices!
  • Community Moderator
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Interviewed on the Envato Notes blog
  • Author had a Free File of the Month
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
+9 more
Enabled Volunteer moderator says

Anyone?

292 posts
  • Australia
  • Bought between 10 and 49 items
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
Ezza says

Mobile phone browsers have different user agent strings, so you inspect the user agent and redirect if it matches a mobile browser

http://en.wikipedia.org/wiki/User_agent

1 post
  • Bought between 100 and 499 items
  • Has been a member for 6-7 years
puremillions says
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

140 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Sold between 1 000 and 5 000 dollars
za says

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]

4149 posts Community Mod Building awesome stuff for your mobile devices!
  • Community Moderator
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Interviewed on the Envato Notes blog
  • Author had a Free File of the Month
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
+9 more
Enabled Volunteer moderator says

i posted it 7 months ago :) i figured it out :P

Enabled SAYS Anyone? POSTED 7 MONTHS AGO REPLY WITH QUOTE | REPORT | PERMALINK

1 post
  • Bought between 1 and 9 items
  • Has been a member for 3-4 years
Neturu says

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.

4149 posts Community Mod Building awesome stuff for your mobile devices!
  • Community Moderator
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Interviewed on the Envato Notes blog
  • Author had a Free File of the Month
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
+9 more
Enabled Volunteer moderator says
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.

3 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Macedonia
  • Referred between 1 and 9 users
  • Sold between 100 and 1 000 dollars
p1ner0 says

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.

4149 posts Community Mod Building awesome stuff for your mobile devices!
  • Community Moderator
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Interviewed on the Envato Notes blog
  • Author had a Free File of the Month
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
+9 more
Enabled Volunteer moderator says

Old thread! Locked! :)

by
by
by
by
by
by