Forum Moderators: phranque

Message Too Old, No Replies

Apache User Agent Detect and Redirect

         

JAB Creations

7:28 pm on May 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've been searching for a serverside using Apache (and probally modrewrite) way to detect a useragent (say opera 6 and IE 4) to specific pages for each useragent.

if UA = opera6 goto opera6.html
if UA = ie4 goto ie4.html

I'm sure this is simple but haven't found anything I could replicate. I have shared hosting and access to .htaccess but not the config file.

sitz

3:13 pm on May 7, 2005 (gmt 0)

10+ Year Member



Read The Fine Manual; there's an example of something similar to what you're trying to accomplish in the mod_rewrite documentation, at [httpd.apache.org ], and another good example in the 'Browser Dependend [sp] Content' section of [httpd.apache.org ].