/foo/.htaccess does an internal redirect
RewriteRule ^(.*)$ /bar/?%{ENV:UNIQUE_ID}
/bar/.htaccess needs to recognise that the request was NOT internal, the issue is that I cannot figure out how to make the comparision work
RewriteCond %{ENV:UNIQUE_ID} !%{QUERY_STRING}
even a
RewriteCond %{QUERY_STRING} %{QUERY_STRING}
won't match, I suppose there is a syntax issue in the right-hand of the expression, escaping % doesn't help.
I tested that the above both variable have the same value on an internal redirect as
RewriteRule ^(.*)$ /test/%{QUERY_STRING}/%{ENV:UNIQUE_ID}
would show it.
The server is Apache/2.2.3
Thanks, Laurian