I'm trying to use mod_rewrite through the .htaccess files and I have a big problem, the .htaccess files don't seems to be read. The machine is running Debian 5.0 and it's using the stable apache2 package.
I've followed instructions from this page: http://www.debian-administration.org/articles/136. Enabled mod_rewrite like that:
a2enmod rewrite
In my /etc/apache2/apache2.conf file I've added this:
<Directory "/var/www">
AllowOverride ALL
Options FollowSymLinks
</Directory>
In the root directory, I've created a .htaccess file with this content:
RewriteEngine on
RewriteRule ^test$ foo.html
I've tried lots of suggestion from answers to similar questions to no avail. The error message I get when visiting foo.com/test is a 404 Page Not Found. All files are readable by everyone. There's no problem when accessing foo.html directly. I've also tried to put garbage in another .htaccess to see if apache would complains about it, nothing changed. Maybe I'm just too tired!
Thanks