Using this:
SetEnv HostServer "testserver"
RewriteRule ^(.*)/test {ENV:HostServer}/admin [L,R=301]
This works. However I do not think it is even reading the HostServer variable at all, just sending it to the relative /admin link. To prove this i just set the HostServer variable to something bogus and it still works just fine.
Am I missing something simple about how such a variable should be picked up?
For the longest time here I thought this was actually working until figuring out it was just going to the relative path, essentially ignoring the variable. Thanks in advance to whoever can help!