Help with htaccess redirect script for iPad
I should have posted this request here first. I hope someone can help me.
I built a site that would be mobile friendly. I built it on a .mobi domain, using wordpress and appropriate plugins. came out nice.
I then went to original site and installed a .htaccess file in the root naming a dozen or so useragents (most common mobile phones) to redirect them to the .mobi site.
It works fine with all agents I have tested it on. I however am getting error messages on iPads.
Can anyone help me with the line I am missing?
Well, I hope it is a line I am missing.
Here is the .htaccess code I installed in the root of the main domain ( dot com)
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} "Windows CE" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "NetFront" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "Palm OS" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "Blazer" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "Elaine" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "^WAP.*$" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "Plucker" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "vodafone" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "iPhone" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "nokia" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "symbian" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "Opera Mini" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "BlackBerry" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "j2me" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "midp" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "htc" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "java" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "sony" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "android" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "AvantGo" [NC]
RewriteRule (.*) http://www.mymobilefriendlysitenamehere.mobi [R,L]
I really appreciate any help from anyone, and hopefully this will also help others.
Thank you.
Greg
No Other Directory Theme Compares
Premium Wordpress Adspace Plugin
All On Site Advertising On Autopilot
No Other Directory Theme Compares
Premium Wordpress Adspace Plugin
All On Site Advertising On Autopilot