in reply to Re: $ENV{'REMOTE_USER'}
in thread $ENV{'REMOTE_USER'}

I am facing the same problem, actually it is described here. It turned out that variables are prefixed with REDIRECT_ prefix (check here for the answer) after applying RewriteRule.