i need to handle mobile redirects

2007-08-10 @ 23:36#

now that the site content is shaping up (from the blog-side anyway), i need to start working on a common redirect to handle mobile devices. i figure this can be handled in the mod_rewriter - not in any actual site code. i found this on the 'net this evening:

RewriteCond %{HTTP_USER_AGENT} "Windows CE" [NC,OR] #Windows CE and Pocket PC RewriteCond %{HTTP_USER_AGENT} "NetFront" [NC,OR] #PalmSource WebBrowser 2.0 RewriteCond %{HTTP_USER_AGENT} "Palm OS" [NC,OR] #Eudora Web Browser for Palm RewriteCond %{HTTP_USER_AGENT} "Blazer" [NC,OR] #Handspring Blazer Browser RewriteCond %{HTTP_USER_AGENT} "Elaine" [NC,OR] #RIM Devices RewriteCond %{HTTP_USER_AGENT} "^WAP.*$" [NC,OR] #WAP Browsers RewriteCond %{HTTP_USER_AGENT} "Plucker" [NC,OR] #Plucker Offline download client RewriteCond %{HTTP_USER_AGENT} "AvantGo" [NC] #AvantGo Service RewriteRule ^index\.html http://www.yourdomain.com/mobile-index.html [L,R]

i need to review the various devices and make sure i understand which accept HTML and which accept only WML (or CHTML?), but this is proly most of what i need.

site