(origionally posted in tech support- sorry I don't know how to move it!)
Hi all, I am at a loss here, I am TRYING to get
http://andersontuttle.com to redirect to
http://andersontuttle.com/mobile.html when the user access it with a iphone.
I have the htaccess in my root folder and have tried several varieties. I tested the htaccess file to make sure it was being 'read' by putting test and only 'test' in the file and sure enough I got a error. So the file is being read- the problem lies in what I am putting in it LOL
right now it has the following-
RewriteCond %{HTTP_USER_AGENT} .*iPhone.*
RewriteRule ^index\.html$ mobile.html [L]
I have also tried:
RewriteEngine on
RewriteCond ${HTTP_USER_AGENT} iPhone
RewriteRule .*
http://andersontuttle.com/mobile.html
that didn't work, so I tried
#redirect mobile browsers
RewriteCond %{HTTP_USER_AGENT} ^.*iPhone.*$
RewriteRule ^(.*)$
http://andersontuttle.com/mobile.html [R=301]
RewriteCond %{HTTP_USER_AGENT} ^.*BlackBerry.*$
RewriteRule ^(.*)$
http://andersontuttle.com/mobile.html [R=301]
RewriteCond %{HTTP_USER_AGENT} ^.*Palm.*$
RewriteRule ^(.*)$
http://andersontuttle.com/mobile.html [R=301]
As far as I know NONE of those were working, my iphone is broken so I am having my mom test it when I email her- but she says she has been getting only a broken lego piece- because the flash does not load on the iphone.
Sooooo, WHAT do I do, how can I make
http://andersontuttle.com to redirect to
http://andersontuttle.com/mobile.html when opened in a iphone???
thanks so much in advance!