mod rewrite - How to debug Apache mod_rewrite -
i have 2 main problems mod_rewrite:
1) there no meaningful error reported when have invalid rule
2) reliably test each modification, have erase chrome's cache. isn't rocket science, have hit ctrl+shift+delete click ok, close window, , reload.
i'd see if of gurus willing share secrets efficiently managing mod_rewrite code.
one trick turn on rewrite log. turn on,try these lines in 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 , rewriteloglevel directives has been replaced new per-module logging configuration.
loglevel alert rewrite:trace6
Comments
Post a Comment