Redirecting mobile users to the full web version of an uploaded site

Redirecting mobile users to the full web version of an uploaded site

If you have created your website on Zoho Sites by uploading your own HTML files, the mobile-optimized version will not be generated automatically. You need to create a subfolder titled "mobile", and upload the mobile optimized "index.html" file into it.

But if you have not yet optimized your pages for mobile devices, there is no way as of now to redirect users to the full site.

So here is a workaround.





UPDATE - 20/09/2012:


The code provided previously was found to have an issue, and has been replaced by the correct one. This new code updated here should work fine.

<html>
<head>
<meta http-equiv="Set-Cookie" content="userView=web;path=/;">
<script>
function gofullweb() {
window.location.href="/";
}
</script>
</head>
<body onload="gofullweb()">
</body>
</html>










Upload an "index.html" file containing the above code only, into a subfolder titled "mobile".

Users accessing your site on mobile devices will now be redirected to the full site.

Raagavan