Forum Moderators: phranque
RewriteCond %{HTTP_USER_AGENT} (Android|iPhone|iPod)
RewriteCond %{HTTP_COOKIE} !phonegame
RewriteCond %{HTTP_REFERER} !phone\.html
RewriteRule ^games/(tower|palace|canal|color)/?$ https://www.example.com/games/phone.html [R=302,CO=phonegame:1:.example.com:525600,L]
Translation: If someone requests one of four large games, and these three conditions are all met Googlebot--get redirected right along with everyone else.
as always, make sure you aren't doing anything that (to google) looks like user agent cloakingThe paradox is that if I make an exception and don’t redirect them, then I really am cloaking, because I’d be treating the googlebot differently from a human :) The ordinary non-mobile Googlebot gets the requested page, just like a non-mobile human.