Forum Moderators: phranque
I seem to have a gaping hole in my knowledge of how environment variables work. Here's my test .htaccess script:
RewriteEngine on
RewriteRule ^a.html$ b.html [ENV=myenvvar:testval]
RewriteRule ^b.html$ hello${ENV:myenvvar}there.html [L]
When I go to the page a.html, I expect to land up at a page called 'hellotestvalthere.html'. But instead I just end up at 'hellothere.html', and the environment variable I set is completely ignored.
I'm using Apache 2.2, and appear to be seriously underinformed! What am I doing wrong? Thanks!