So I'm trying to get mod_rewrite to work, using Apache2.2 on windows 7 I'm running it as a local server. All sites are accessed at http://localhost/ It's not working?

I created a simple .htaccess file and it won't work.

in the httpd.conf I changed it to

Options All AllowOverride ALL

Whats the problem?

Accepted Answer

Try writing garbage in your .htaccess file. This should cause a 5xx error message. If it does not then your AllowOverride All is at the wrong place in your config.

I would also suggest adding a (name based) virtualhost to keep your configuration at one place instead of modifying the defaults.

Written by vbence
This page was build to provide you fast access to the question and the direct accepted answer.
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki