httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rief, Jacob" <Jacob.R...@TIScover.com>
Subject RE: mod_rewrite help
Date Wed, 02 May 2001 10:06:41 GMT
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:dt@varna.ttm.bg]
> Sent: Wednesday, May 02, 2001 11:56 AM
> To: new-httpd@apache.org
> 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
> 
> 

Mime
View raw message