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

voip-call.us/invoices/2006/10/26

to this URL

voip-call.us/invoices/index.php?year=2006&month=10&day=26

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
nothing.

Can anyone see the problem I'm missing?

Dan



More information about the PLUG mailing list