[Gllug] Apache BrowserMatch question

rich at annexia.org rich at annexia.org
Mon Dec 23 12:00:06 UTC 2002


On Mon, Dec 23, 2002 at 10:57:13AM +0000, Brent Geach wrote:
> Hi All
> Just a quick question about apache.
> Im wanting to do a browser match against anything coming into my apache server
> and check if its a wap browser ie "^Nokia" and if true to re-direct to another
> page
> Currently Im trying 
> BrowserMatch "^Nokia" redirect http://someurl.com

I'm assuming this doesn't work, hence the question. You could
try using mod_rewrite, something like:

RewriteEngine on

RewriteCond %{HTTP_USER_AGENT}  ^Nokia
RewriteRule ^(.*)               http://wap.site/$1          [L]

See:

http://www.engelschall.com/pw/apache/rewriteguide/

Rich.

-- 
Richard Jones, Red Hat Inc. (London, UK) http://www.redhat.com/software/ccm
http://www.annexia.org/ Freshmeat projects: http://freshmeat.net/users/rwmj

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list