httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Per Jessen <>
Subject [users@httpd] setting prefer-language as part of a rewritecond
Date Thu, 14 Apr 2005 13:53:52 GMT
I'm trying to set the environment variable 'prefer-language' as part of a RewriteCond -
according to the rewritelog it works fine:

... setting env variable 'prefer-language' to 'da'

What isn't working is - setting this variable has no effect on the language negotiation -
which I believe it should have.  

from .htaccess:

RewriteEngine on
RewriteCond  %{REQUEST_URI} ^/([a-z][a-z])(/.*)$  [nc]
RewriteRule  ^  %2   [env=prefer-language:%1]

What am I doing wrong here?

/Per Jessen, Z├╝rich

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message