Apache mod rewrite incompatibility [Again!]
Here we go
I'm now dealing with litespeed rewrite module again!
I glad the rewrite module bug that I reported last time got fixed. (It may not considered to be a bug but triviality.)
However, now I found new bug and it's very basic feature of rewrite module.
I wonder why it still remain. (If this confirm to be a bug I think you guys done reckless at rewrite module)
the problem is Litespeed can't unset Environment Variables
or not recognize the expression.
Here the test
first create phpinfo.php and .htaccess on the same directory
obviously what phpinfo.php does
put this rewrite in .htaccess
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
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
I got REDIRECT_STATUS=200 set in environment variable.
FYI: "RewriteRule ^ -" does nothing but its main use is to set Environment Variables.
should be addressed in 4.2.3 release.
|All times are GMT -7. The time now is 11:19 PM.|