I am sure this will get requested a great deal, however i also know things change often, and so i am wondering exactly what the current the easy way perform a simple mobile recognition and redirection for any website is.

I am not likely to have the ability to cover all phones, but Let me a minimum of get apple iphones and androids.


<script type="text/javascript">
    function checkBrowser(){
        var str=navigator.appVersion; 
        var patt1=/Android/;
        var patt2=/iPhone/;
        if(str.match(patt1) || str.match(patt2)){

then on our bodies-tag put onload="checkBrowser()"

it's a simple method of doing it, but i am there plenty different options.. hope it will help :)