This code does nothing about URI.
just set 2 variables and then unset 1 variable.
now check phpinfo.
in Apache you will got only
but in Litespeed
2 variables still remain
further more I suspect that if I group variable unset with other flag
RewriteRule ^ - [E=!RVAR_DIR,E=RVAR_TEST:test]
(unset RVAR_DIR and set RVAR_TEST)
the unrecognized part will break entire expression thus RVAR_TEST will not be set.
(somehow Litespeed managed to break my entire rewrite file)
Another bug I not confirmed myself but you guys should check it out
related to previous bug I reported that I think you just fixed it carelessly.
(I think this can't be the right behavior but you should confirm it yourself.)
I create rewrite like this
RewriteRule ^ -
It obviously does nothing.(not even rewrite anything)
I got REDIRECT_STATUS=200 set in environment variable.
FYI: "RewriteRule ^ -" does nothing but its main use is to set Environment Variables.