Joshua Slive wrote: > Well, I don't know what the problem is. But my first thing to try > would be to put your RewriteRule in httpd.conf outside any <Directory> > section. This should get the RewriteRule to run at an earlier phase > of the request processing, which might solve the problem. But it is > just a guess. > > The other thing to try would be to use SetEnvIf to set the environment variable. Funny you should mention it - I was just playing around that. Now, here's something really odd: Given these two : SetEnvIf Request_URI ^/([a-z][a-z])/ prefer-language=$1 SetEnvIf Remote_Addr ^(.+)$ spamtrap=$1 Given a URL like: /xx/langtest, I would expect to have two environment variables: spamtrap=<ip-address> and prefer-language=xx What I have (according to a phpinfo() printout) is only the 'spamtrap' variable. There is another set of variables all prefixed with 'REDIRECT_', including 'REDIRECT_prefer-language", but I suspect this is php-specific? So, why do I get my 'spamtrap' variable set properly, but not 'prefer-language' ???? I'm beginning to consider a bug-report. /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