I’m getting a “webpage has a redirect loop” error. Most likely this is due to my Apache rewrite configuration. I’ve had these issues before, and find them hard to debug. Is there some sort of log that allows me to see what the request is being redirected to?
If not, how do you debug Apache rewrites in an efficient way?
You can configure mod_rewrite’s log file via the “RewriteLog” directive.
For example:
For more information, see: http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritelog
One other link I find myself going back to is “crazy advanced mod_rewrite” — lots of info there which you may want to stash away for future reference. It’s at: http://www.askapache.com/htaccess/crazy-advanced-mod_rewrite-tutorial.html