iPhone Sniffer - Easily detect iPhone visitors and redirect them to your iPhone layout.
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_USER_AGENT} .*iPhone.* RewriteRule ^index\.html$ http://www.mobile.mydomain.com [L] RewriteRule ^/$ http://www.yourdomain.com/index.html [L] </IfModule>