Apache Rewrite Rules

Daniel C. dcrookston at gmail.com
Fri Nov 10 10:23:49 MST 2006

Having some trouble with rewrite rules.  Here's the rule and surrounding lines:

RewriteEngine On
RewriteLog /var/log/httpd/rewritelog
RewriteLogLevel 9
RewriteRule ^/invoices/?([^/]*)/?([^/]*)/?([^/]*)/?  \
      /invoices/index.php?year=$1&month=$2&day=$3    [PT]

If I understand correctly this should send requests to


to this URL


but when I hit the first URL above I get a 404.  The error log shows
the 404, and the rewrite log (which is writable by Apache) shows

Can anyone see the problem I'm missing?


More information about the PLUG mailing list