4598 posts Community Mod Building awesome stuff for your mobile devices!
  • Contributed a blog post
  • Elite Author: Sold more than $75,000 on Envato Market
  • Helps us moderate the forums
  • Has sold $125,000+ on Envato Market
+15 more
Enabled 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.

4598 posts Community Mod Building awesome stuff for your mobile devices!
  • Contributed a blog post
  • Elite Author: Sold more than $75,000 on Envato Market
  • Helps us moderate the forums
  • Has sold $125,000+ on Envato Market
+15 more
Enabled Moderator says

Anyone?

292 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Located in Australia
  • Has collected 10+ items on Envato Market
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
  • Has been part of the Envato Community for over 6 years
  • Has collected 100+ items on Envato Market
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
  • Has been part of the Envato Community for over 6 years
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
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]

4598 posts Community Mod Building awesome stuff for your mobile devices!
  • Contributed a blog post
  • Elite Author: Sold more than $75,000 on Envato Market
  • Helps us moderate the forums
  • Has sold $125,000+ on Envato Market
+15 more
Enabled 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
  • Has been part of the Envato Community for over 4 years
  • Has collected 1+ items on Envato Market
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.

4598 posts Community Mod Building awesome stuff for your mobile devices!
  • Contributed a blog post
  • Elite Author: Sold more than $75,000 on Envato Market
  • Helps us moderate the forums
  • Has sold $125,000+ on Envato Market
+15 more
Enabled 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
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $100+ on Envato Market
  • Has collected 1+ items on Envato Market
+2 more
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.

4598 posts Community Mod Building awesome stuff for your mobile devices!
  • Contributed a blog post
  • Elite Author: Sold more than $75,000 on Envato Market
  • Helps us moderate the forums
  • Has sold $125,000+ on Envato Market
+15 more
Enabled Moderator says

Old thread! Locked! :)

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by