You good at Mobile Redirection?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zoddy
    Confirmed User
    • Oct 2006
    • 280

    #1

    You good at Mobile Redirection?

    I am looking for someone to give me a hand with mobile redirection and a couple things I want to be able to do with it. I don't think it is a lot of work but would be willing to compensate for someone with the proper Mobile skills...

    222 569 966 on icq
    hit me up
  • svzcom
    Confirmed User
    • Jun 2007
    • 4654

    #2
    Here“s an exemple in php:


    Code:
    <?php
    if(strstr($_SERVER['HTTP_USER_AGENT'],'Android') ||
       strstr($_SERVER['HTTP_USER_AGENT'],'webOS') ||
       strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') ||
       strstr($_SERVER['HTTP_USER_AGENT'],'iPod')) {
      header('Location: http://www.google.com');
      exit;
    }
    ?>

    and one in javascript:


    Code:
    var uagent = navigator.userAgent.toLowerCase();
     if(uagent.indexOf('android') ||
        uagent.indexOf('webos') ||
        uagent.indexOf('iphone') ||
        uagent.indexOf('ipod')){
        document.location = 'http://www.google.com';
    }
    Hope this can help you

    Comment

    • Jack Sparrow
      Almost goners..
      • May 2008
      • 11420

      #3
      Use htaccess redirect codes. Safest way.
      If you need any help, just hit me up and i will see if i can help you with something.

      Comment

      • fatfoo
        ICQ:649699063
        • Mar 2003
        • 27763

        #4
        Good luck, zoddy.
        Send me an email: [email protected]

        Comment

        • zoddy
          Confirmed User
          • Oct 2006
          • 280

          #5
          hey thanks guys, actually figured out what i was going to do..... i might still hit u up in the future.... cheers

          Comment

          Working...