Just a quickie - throw this in your apache config if you need error logging for mod_rewrite. Useful in a dev environment, not so much in production.

RewriteLog /var/log/httpd/rewrite.log RewriteLogLevel 9