I am looking for a way to redirect the iphone site to the normal site without using duplicated index pages.
I have a link in the phone site that need to bring you to the normal site. Any idea how i can do this without going back to the phone version?
I am using this code to redirect mobile users to phone version and that is all working fine. I will give them the option to go to the normal site.
<script>
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
if (document.cookie.indexOf(“iphone_redirect=false”) == -1) window.location = “http://www.yourdomain/phone/index.html”;
}
</script>