httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Per Jessen <...@computer.org>
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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message