I didn't have any luck finding anything useful on my own, so:
I would like to be able to automatically migrate all my .htaccess rules to the global Apache (2.2) config file, and disable .htaccess file parsing (for performance reasons).
- after every code push a script would find all .htaccess files in a given directory (/var/webapps)
- all the rules would be parsed and appropriately merged
- results would be written to Apache config file, and the server reloaded
I'm probably capable of writing this (or at least parts of this) myself, but I was wondering whether something well-tested already exists.
We have many different apps (incl. some 3rd party apps) running on the server, so doing this manually will greatly complicate the development-release process
 by merging I mean that, for example, all identical
Deny from all rules would be in a single block, not duplicated dozens of times.
Or, is all this a really bad idea?