Quote:
Originally Posted by st0ned
I would be interested in knowing a good way to redirect this traffic also.
|
There's various ways.. .htaccess, php, javascript, etc
What I do is place this in my meta so to redirect google mobile search to a mobile site rather than site in results.
Code:
<link rel="alternate" media="handheld" href="http://sendtothisurl.com" />
this tells google mobile search that the other url is the mobile version.
In addition to this, I add the following javascript for iPhone and iPod.
PHP Code:
<script language=javascript>
<!--
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)))
{
location.href='http://thisurl.com';
}
-->
</script>
.. to be continued...