Enable Apache rewrite logging
From Brian Nelson Ramblings
Enable Apache rewrite logging
Found this out to be handy when trying to determine if a rewrite is php or apache
One trick is to turn on the rewrite log. To turn it on,try these lines in your apache main config or current virtual host file (not in .htaccess):
RewriteEngine On RewriteLog "/var/log/apache2/rewrite.log" RewriteLogLevel 3
Since Apache httpd 2.4 mod_rewrite RewriteLog and RewriteLogLevel directives has been completely replaced by the new per-module logging configuration.
LogLevel alert rewrite:trace6
Happy rewrite hunting!!!