Automatic transfer from .com to a .mobi site

3 replies
I am NOT a programmer, but as a consultant have an idea and question. Is there a way a mobile visitor to a regular website could automatically be transferred to a .mobi website. There would be some kind of html code on the main website that would recognize the mobile hardware, and then automatically transfer to the .mobi site. This would eliminate the necessity of advertising the .mobi website.
#automatic #mobi #site #transfer
  • Profile picture of the author j-spratt
    you can do it with just .com sites, but because the phones keep changing and no standard screen size, it requires a little manipulation. Here's a site that can be viewed on the iphone and a web browser without much difference in viewing Play Guitar Now! if you want to do yourself email me, and I will help you put together.
    {{ DiscussionBoard.errors[1828537].message }}
  • Profile picture of the author Bruce Hearder
    Yes its quite easy to do..

    It requires some PHP or ASP code to run on your server and figure out what sort of device is access the website and then redirect them appropriately..

    Many sites do it this way now (ebay.com). If you try and access ebay.com on an iphone, you are redirected to

    http://iphone.ebay.com/


    It will check for the USER-AGENT flag that is sent with every HTTP call.

    So its its sees :

    Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_1_2 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7D11 Safari/528.16

    Then its an iphone,

    BlackBerry9700/5.0.0.351 Profile/MIDP-2.1 Configuration/CLDC-1.1 VendorID/123

    Is a blackberry..

    Check out : http://www.zytrax.com/tech/web/mobile_ids.html for more user-agents for all sorts of devices that can access a website.

    I hope this helps

    Bruce
    {{ DiscussionBoard.errors[1830652].message }}
    • Profile picture of the author AnthonyAdams
      Yes - USER AGENT, you beat me to it.
      {{ DiscussionBoard.errors[1834085].message }}

Trending Topics