Okay, what am I doing wrong? I'm running XAMPP on Windows XP, and am trying to get mod_rewrite to work. In httpd.conf, I uncommented the appropriate LoadModule, and moved it to directly above the mod_cache line:
LoadModule rewrite_module modules/mod_rewrite.so
#LoadModule cache_module modules/mod_cache.so
I changed every AllowOverride to All:
Then, at the bottom, I placed the following two lines:
RewriteRule ^test1.html$ test2.html
I restarted apache. (I even tried rebooting Windows.) At first, both test1.html and test2.html were in the test directory. Going to test1.html showed the contents of test1.html. If I delete test1.html, I get a 404 error.
phpinfo() shows mod_rewrite as active.
Can anyone help? Thanks.