
Untitled
By: a guest on
Aug 11th, 2012 | syntax:
None | size: 0.66 KB | hits: 7 | expires: Never
Give option for user to still see browers version of website from mobile
RewriteCond %{HTTP_USER_AGENT} "!(android|blackberry|googlebot-mobile|iemobile|ipad|iphone|ipod|opera mobile|palmos|webos)" [NC]
RewriteRule ^(.*)$ http://www.m.abc.com [L]
<script type="text/javascript">
<!--
if (screen.width <= 699) {
document.location = "mobile.html";
}
//-->
</script>
<script language=javascript>
<!--
if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
location.replace("http://url-to-send-them/iphone.html");
}
-->
</script>
if ( (screen.width < 1024) && (screen.height < 768) ) {
window.location = 'http://mobile.site.com';
}