I'm running Apache on Windows 2000 and I can't get mod_rewrite to work. I know that I have it (it's in the modules directory).
In .htaccess, I have:
RewriteRule ^/test/(.*)$ foo/$1 [R]
in httpd.conf, I uncommented:
When I restart apache and try to access
The url isn't getting changed and all I get is a 404 because "test" doesn't exists.
Is there something I'm missing? Can somebody post an example of a properly set up httpd.conf and .htaccess file?
--Philip
Links 2.0 moderator
In .htaccess, I have:
Code:
RewriteEngine on RewriteRule ^/test/(.*)$ foo/$1 [R]
in httpd.conf, I uncommented:
Code:
LoadModule rewrite_module modules/mod_rewrite.soWhen I restart apache and try to access
Code:
http://localhost/test/The url isn't getting changed and all I get is a 404 because "test" doesn't exists.
Is there something I'm missing? Can somebody post an example of a properly set up httpd.conf and .htaccess file?
--Philip
Links 2.0 moderator