openlitespeed
openlitespeed copied to clipboard
RewriteRule with [next] flag?
I was fiddling just a bit and discovered the [next] rewrite flag isn't working. I'm not positive, but I'm wondering if that could be caused by the ne check here that comes before the next check? https://github.com/litespeedtech/openlitespeed/blob/2506fbc8ae1fe74d37cf5b7d639bc182b66daf0e/src/http/rewriterule.cpp#L842
You are right, the order need to be reversed.
Thanks for confirming. I'll just add here that I think there's another item worth improving in that same block, which is the N=[iterations] variable that is supported by Apache, but seemingly is not supported yet by LiteSpeed. https://httpd.apache.org/docs/current/rewrite/flags.html#flag_n