If I understand Apache configuration correctly, RewriteCond or a lot of them are there to support when RewriteRule should happen. Would it make sense to provide have them grouped together?
Consider following example
RewriteCond ... [OR]
RewriteCond ... [OR]
RewriteRule ...
that outputs as something like:
rules: {
'{rewrite_str}': [{conditions}]
}
not quite sure how to model conditions (AND and OR) but intention should be clear enough?