FREE Mobile Website Redirect Script?

by 11 comments
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
#mobile marketing #free #mobile #redirect #script #website
  • Profile picture of the author 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
    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 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
    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 maladireta
    Thanks Man !
  • Profile picture of the author 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.

Next Topics on Trending Feed