I understand that, @Slavik. The thing is, you should NOT need to perform any rewrite rules, as they are very expensive on server resources. I don't use any rewrite rules on Nginx to have friendly URL's in XenForo (for example). I fact, I don't use any rewrite rules, as they are not needed.
http://www.axivo.com/go/openssl
Code:location /go { ... location /go/openssl { return 301 https://www.axivo.com/community/threads/180/; } ... }
You must be running some rewrite somewhere to remove the index.php from your urls no?
Having said that, would be interesting to set up some benchmarks to find out how much of an effect the re-writes have on XenForo under litespeed...