How would you go about cleaning up a huge list of rewrites that accumulated over many years? The idea is to get rid of all the overridden and unused redirect statements while preserving everything that works.
I am thinking of enabling RewriteLog and setting RewriteLogLevel to 3 or 4 for a day or so, then parsing through the log and identifying "dead" rewrites, commenting them out, then checking the logs for fresh 404s.
Have you had to do a mod_rewrite cleanup like that and/or do you have any other ideas?