Try with:
RewriteEngine On
RewriteMap lc int:tolower
RewriteCond $lc{%{HTTP_ACCEPT_LANGUAGE}} ^.*de.*$
RewriteRule /.*$ http://www.google.com [R,L]
J.
> -----Original Message-----
> From: Dido [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 02, 2001 11:56 AM
> To: [EMAIL PROTECTED]
> Subject: mod_rewrite help
>
>
> hello,
>
> this might not be the proper place for asking such questions;
> if so, pls
> excuse my ignorance.
>
> anyway, i have a big problem with mod_rewrite.
>
> consider the following code:
>
> RewriteEngine On
> RewriteCond %{HTTP_ACCEPT_LANGUAGE} ^*de*$
> RewriteRule /* http://www.google.com [R,L]
>
> i want to redirect all visitors from germany to a specific
> web page BUT i
> can't achieve it :( i have tried hundreds of formats, read
> all that i could
> find about mod_rewrite but still it won't work. i have no
> problems when
> working with IPs, domain names, browser names, etc. i believe that the
> reason is in the twisted format of the http_accept_language variable.
>
> i'd be very helpful if you can offer me some assistance.
> thanks in advance
> and sorry once again,
>
> Martin
>
>