url=window.location.href.toString(); if(url.indexOf("?mobile")<0){ try{ if(/Android|Windows Phone|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) location.href="m/" }catch(e){} }