"mod_rewrite" does logging itself via "RewriteLogLevel" and "RewriteLog". I'm wondering if I can get it to capture the referring URL in the logs when it executes a redirect.
Alternatively, does mod_rewrite add any environment variables when something gets redirected? If so, I could use that to create a custom log using "mod_log_config".