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

enter image description here

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

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -