I've checked my httpd.conf. mod_rewrite was disabled, so I've enabled that and restarted Apache.
I'm running on Windows 2003 by the way, don't know if it makes any difference.
I'm quite versed with regular expressions, but I thought I'd see if I could find a simple expression to see if mod_rewrite was actually working.
I placed:
RewriteEngine on
RewriteRule ^foo/?$ bar.php
into the .htaccess file in the document root, and tried to access http://localhost/foo
Apparently, this should say "The requested URL /bar.php was not found on this server".
But it doesn't, it says "The requested URL /foo was not found on this server."
There are no errors in the error log related to mod_rewrite, just the 404s on /foo and /404.htm.
Any help would be appreciated.