How to debug Apache mod_rewrite

I have two main problems with mod_rewrite:

  1. There is no meaningful error reported when I have an invalid rule

    Enter image description here

  2. To reliably test each modification, I have to erase Google Chrome’s cache. This isn’t rocket science, but I have to hit Ctrl + Shift + Delete, click OK, and close the window, and reload.

I’d like to see if any of the gurus are willing to share their secrets to efficiently managing mod_rewrite code.

5 Answers
5

Leave a Comment