FREE Mobile Website Redirect Script?

Profile picture of the author J. Barry Mandel by J. Barry Mandel Posted: 01/23/2013
Can anyone suggest where I can find a FREE Mobile Website Redirect Script?

We already have one however it's not working, so I'd really prefer not to lay out any extra money for one if I can prevent it

Thanks in Advance,

Justin
#free #mobile #redirect #script #website

  • Profile picture of the author jaintechnosoft
    jaintechnosoft
    Originally Posted by slimads View Post
    What are you trying to do ? Take a user from a regular site site1 to a site b based on the user agents ? If so it is just couple of lines of code if you are doing it in PHP .

    Quick googling got me this one - Simple User Agent (Mobile and Smartphone) Detection and Redirction with PHP - PHP - Snipplr Social Snippet Repository
    Hi

    Your saying it is a couple of lines but can you give me that code example it will help for me.

    Have a Great Day !

    Karen
  • Profile picture of the author WillR
    WillR
    Justin,

    It depends what type of redirect script you are wanting.

    The most accurate one to use nowadays are those that detect the user agent of devices. Since new devices are being released all the time, the list of user agents needs to be kept up to date.

    For that reason using a free redirect script is not a great idea. You want to use a service or script that will keep the list up to date for you. No point using a free option if it's not effective.

    It also depends if you are using Wordpress or not.
  • Profile picture of the author networkempire
    networkempire
    Hi
    You seem to be very knowledgeable in Mobile marketing

    I make HTML5 based apps. I'm trying to put an URL there

    Then I'm looking for an Intelligent redirection set up that allows me to set individual redirection - and then tracks and gives me intelligent insights on conversion etc

    Do you know anything available like that? Thanks in advance
    regards




    Originally Posted by WillR View Post
    Justin,

    It depends what type of redirect script you are wanting.

    The most accurate one to use nowadays are those that detect the user agent of devices. Since new devices are being released all the time, the list of user agents needs to be kept up to date.

    For that reason using a free redirect script is not a great idea. You want to use a service or script that will keep the list up ti date for you. No point using a free option if it's no effective.
  • Profile picture of the author Nail Yener
    Nail Yener
    Here is the one that I use in my projects:

    Detect Mobile Browsers - Open source mobile phone detection

    Decide on which method you want to use and download the corresponding script.

    You may find better paid scripts that cover more devices. There are also other services that require a monthly fee and provide a limited number of redirections that I would never approach. I kinda hate monthly fees.
  • Profile picture of the author bonn
    bonn
    hey buddy,

    Just copy paste this code in between the <header>...</header> tags on the page you want to detect and redirect. Also change the "http://www.gomobileenterprise.com" to whatever your mobile site URL is.



    HTML Code:
    <script>
    function detect() {
           var uagent = navigator.userAgent.toLowerCase();
           var mobile = false;
           var search_strings = [
               "iphone",
               "ipod",
               "ipad",
               "series60",
               "symbian",
               "android",
               "windows ce",
               "windows7phone",
               "w7p",
               "blackberry",
               "palm"
           ];
           for (i in search_strings) {
               if (uagent.search(search_strings[i]) > -1) mobile = true;
           }
           return mobile;
       }
       if (detect()) window.location = "http://gomobileenterprise.com/";
    </script>
  • Profile picture of the author DJL
    DJL
    I have a few questions about the script suggested here:
    • I presume you meant <head> </head> tags, not <header> </header>?
    • The list of user agents seems very sparse. Are there others that should be included?
    • In the "for" loop, would it be worthwhile to exit the loop as soon as a match is found?
    • Is the inclusion of "ipad" correct? I have read elsewhere that the iPad works pretty well with normal websites.
    • Would a PHP solution be more universally effective, as some broswers might have JavaScript turned off?
    Thanks for your advice.
    Originally Posted by bonn View Post
    ... Just copy paste this code in between the <header>...</header> tags on the page you want to detect and redirect....
  • Profile picture of the author EZE522
  • Profile picture of the author zidbox
    zidbox
    Originally Posted by bonn View Post
    hey buddy,

    Just copy paste this code in between the <header>...</header> tags on the page you want to detect and redirect. Also change the "http://www.gomobileenterprise.com" to whatever your mobile site URL is.



    HTML Code:
    <script>
    function detect() {
           var uagent = navigator.userAgent.toLowerCase();
           var mobile = false;
           var search_strings = [
               "iphone",
               "ipod",
               "ipad",
               "series60",
               "symbian",
               "android",
               "windows ce",
               "windows7phone",
               "w7p",
               "blackberry",
               "palm"
           ];
           for (i in search_strings) {
               if (uagent.search(search_strings[i]) > -1) mobile = true;
           }
           return mobile;
       }
       if (detect()) window.location = "http://gomobileenterprise.com/";
    </script>
    Thanks bro for sharing this script.
  • Profile picture of the author maladireta
    maladireta
    Thanks Man !
  • Profile picture of the author imsolutionsgroup
    imsolutionsgroup
    Make sure the script you're using is utilizing PHP detection for the redirect and not screen size.

    Screen size is an inadequate solution now since the mobile phones are getting bigger and bigger.
  • Profile picture of the author tyrdsouza
    tyrdsouza
    we have a redirection script available, where you can redirect by Geo , OS , Operator , device. We also show ads to help you monetize your inventory.

    Do DM me for more details.

Related discussions