Redirecting to mobile website through javascript


A small javascript snippet can help you redirect all your mobile traffic to its specific url.
1
2
3
4
5
  <script type="text/javascript">// <![CDATA[ 
     
    if (screen.width <  800) {document.location = "small/index.html";}
 
// ]]></script>