Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Sep 2009
    Posts
    53
    Thanks
    4
    Thanked 0 Times in 0 Posts

    What is the easiest way to redirect when on a mobile browser?

    I've been searching all over google and the only thing that made relative sense was a .htacces rewrite rule. But that didn't work, it just errored out my wordpress site.

    http://webdirect.no/mobile/apache-re...-iphone-users/

    that was the one i tried out with no luck...

    either way, there has got to be an easy code to just put into my index.php file that would redirect the site to www.mysite.com/mobile/index.html

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,471
    Thanks
    8
    Thanked 1,085 Times in 1,076 Posts
    I've used this:
    http://detectmobilebrowsers.mobi/

    And it seems to work very good.
    I think you can try it for free and test it out.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •