On my desktop website, I have implemented this code to redirect mobile users to the mobile version of my site:
<script type="text/javascript">
<!--
if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)))
{
location.replace("http://YOUR-MOBILE-SITE.com");
}
else if (navigator.userAgent.match(/Android/i))
{
location.replace...
}
else if (navigator.userAgent.match(/BlackBerry/i))
{
location...
}
-->
</script>
For Linux, what should be used instead of /android/ and /blackberry/?
And how can this be achieved on Linux? Using /linux/?