Mobile Redirect Code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mromro
    So Fucking Banned
    • Jan 2011
    • 770

    #1

    Mobile Redirect Code

    this is the mobile detection code I use in my htaccess file. Am I missing any OS? What do you use?

    RewriteCond %{HTTP_USER_AGENT} ^.*iphone|ipod|ipad|blackberry|android|sgh|sonyeri csson|psp|mot|htc|lg|nokia|palm|treo|j2me|webos|sm artphone|symbian.*$ [NC]
  • V_RocKs
    Damn Right I Kiss Ass!
    • Nov 2003
    • 32449

    #2
    When someone sends me to their mobile site on my Android phone I go elsewhere... I have a 800x600 pixel screen and I can surf regular sites just fine...

    Comment

    • mromro
      So Fucking Banned
      • Jan 2011
      • 770

      #3
      The purpose is to sell the mobile traffic not to make the surfer happy.

      Comment

      • Yngwie
        I am an Alien from space
        • May 2003
        • 11118

        #4
        mobile|android|blackberry|brew|cldc|docomo|htc|j2m e|micromax|lg|midp|mot|motorola|netfront|nokia|obi go|openweb|opera.mini|palm|psp|samsung|sanyo|sch|s onyericsson|symbian|symbos|teleca|up.browser|vodaf one|wap|webos|windows.ce

        That should cover everything.. or close to it.
        ICQ: 16544251 - Skype: gator37 @ eastlink.ca - email: yngwie @ isys.ca

        Comment

        • mromro
          So Fucking Banned
          • Jan 2011
          • 770

          #5
          Originally posted by Yngwie
          mobile|android|blackberry|brew|cldc|docomo|htc|j2m e|micromax|lg|midp|mot|motorola|netfront|nokia|obi go|openweb|opera.mini|palm|psp|samsung|sanyo|sch|s onyericsson|symbian|symbos|teleca|up.browser|vodaf one|wap|webos|windows.ce

          That should cover everything.. or close to it.

          Thanks Yngwie!

          Comment

          • livexxx
            Confirmed User
            • May 2005
            • 1201

            #6
            redirect immediately to a page that says "Mobile optimised" or "Full site" and a cookie.etc to remember their preference the next time. I've got it on a php include rather than .htaccess so can decide easier on what to do with them
            http://www.webcamalerts.com for auto tweets for web cam operators

            Comment

            • Mrwww
              Confirmed User
              • Mar 2012
              • 374

              #7
              Originally posted by Yngwie
              mobile|android|blackberry|brew|cldc|docomo|htc|j2m e|micromax|lg|midp|mot|motorola|netfront|nokia|obi go|openweb|opera.mini|palm|psp|samsung|sanyo|sch|s onyericsson|symbian|symbos|teleca|up.browser|vodaf one|wap|webos|windows.ce

              That should cover everything.. or close to it.



              DattonMedia
              Affordable design and media.
              Daniel Datton
              // ICQ: 9 0 5 9 2 8
              support
              @dattonmedia.com

              Comment

              • Yngwie
                I am an Alien from space
                • May 2003
                • 11118

                #8
                Originally posted by mromro
                Thanks Yngwie!
                You're welcome.
                ICQ: 16544251 - Skype: gator37 @ eastlink.ca - email: yngwie @ isys.ca

                Comment

                • BIGTYMER
                  Junior Achiever
                  • Nov 2004
                  • 17066

                  #9
                  Originally posted by mromro
                  The purpose is to sell the mobile traffic not to make the surfer happy.
                  Mobile traffic are people too!

                  Comment

                  • Markul
                    Likes Pie
                    • Dec 2007
                    • 12403

                    #10
                    Originally posted by BIGTYMER
                    Mobile traffic are people too!
                    But do they have feelings?
                    But.... I pulled out...

                    Comment

                    Working...