View Single Post
Old 06-06-2009, 05:26 PM  
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
Quote:
Originally Posted by st0ned View Post
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...
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote