RewriteCond %{HTTP_HOST} www.federfarmanuoro.it RewriteCond %{HTTP_USER_AGENT} "\(android;|\(blackberry;|\(ipad;|\(iphone;|\(ipod;|\(iemobile;|\(opera mobile;|\(palmos;|\(webos;|\(googlebot-mobile;" [NC] RewriteRule ^(.*)$ http://www.federfarmanuoro.it/mobile [L,R=302] RewriteCond %{HTTP_HOST} http://www.federfarmanuoro.it/mobile RewriteCond %{HTTP_USER_AGENT} "\(macintosh;|\(windows;|\(x11;|\(compatible;|\(+http" [NC] RewriteRule ^(.*)$ http://www.federfarmanuoro.it [L,R=302]