Also, is there a way to append flags to rewrite rules inserted through filters?
The code in classes.php appends “[QSA,L]” to all rules while they are being written to .htaccess.
Since inserting custom rules through the rewrite rules filters (for example root_rewrite_rules) works only when in verbose rewrite rules mode, and causing the full rules to be written to .htaccess as indicated in the first post in this thread.
so, instead of editing classes.php, I tried adding $wp_rewrite->use_verbose_rules = true; to my-hacks.php but it doesn’t seem to have an effect.
Am I missing something?
I’m considering writing a plug-in to fine tune rewrite rules from within WP. This is important to people who migrate to WP and who want to add rules to map an older system’s permalinks.
I would love to see WordPress use filesystem for storing content as XML. This will open a new horison of uses and functionality, in adittion to being very suited to this kind of application.
Speaking of large dependencies caused by database abstraction, MySQL in itself can be viewed as a dependency.