redirect for iphone

0 views
Skip to first unread message

Chris Drackett

unread,
Jul 9, 2007, 5:23:26 PM7/9/07
to iPhoneWebDev
I am trying to figure out how to get a website to redirect the iphone
version of safari using .htaccess. Does anyone know a way to get this
to work? or is there a better method?

Michael Geary

unread,
Jul 9, 2007, 5:39:01 PM7/9/07
to iphone...@googlegroups.com
> From: Chris Drackett

>
> I am trying to figure out how to get a website to redirect
> the iphone version of safari using .htaccess. Does anyone
> know a way to get this to work? or is there a better method?

Chris, if you have mod_rewrite enabled, you can branch on the User-Agent
header.

See this page:

http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html

and search the page for User-Agent to see an example just like what you
want.

-Mike

Reply all
Reply to author
Forward
0 new messages