iPhone htaccess redirect redirecting the iPad

Posted by Luis Armando on Stack Overflow See other posts from Stack Overflow or by Luis Armando
Published on 2010-12-26T01:43:30Z Indexed on 2010/12/26 1:54 UTC
Read the original article Hit count: 537

Filed under:
|

how can I avoid this from happening? I currently have:

RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} "smartphone|rover|ipaq|au-mic,|alcatel|ericy|vodafone\/|wap1\.|wap2\.|iPhone|android"[NC]
RewriteCond %{REQUEST_URI} !^/m/
RewriteRule ^.*$ http://www.mydomain.com/m/$0 [R=301,L]

but when someone logs in with an iPad he/she gets redirected =/ to the mobile version as well and I'd like them to see the normal site (without the /m/)

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about redirect