Joshua Slive wrote: > On 4/14/05, Per Jessen <per@xxxxxxxxxxxx> wrote: >> 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? > > What version of apache are you using? This will only work in 2.0.47 and later. 2.0.52. > Another guess is that might need to specify the [PT] flag to RewriteRule. But the URL rewrite works fine itself - it's just the value of the variable that seems to disappear. I'll try it with [pt]. /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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx