Here is my code, but i dont see what is giving it problems, it just keeps reloading on the PC site! <script type="text/javascript"> if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/Android/i)) ){ var newURL = "m." + window.location.host + window.location.pathname; location.href= "http://" + newURL; }else{ if(location.host ="mstratford.co.cc") {} }else{ var newURL = window.location.pathname; location.href="http://mstratford.co.cc/" + newURL;}}</script>