Mod_rewrite not working?

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

I created a simple .htaccess file and it will not work.

in httpd.conf, I changed it to

  Options All AllowOverride ALL

What is the problem?

+3
source share
2 answers

Try writing garbage in the .htaccess file. This should cause a 5xx error message. If it is not, yours AllowOverride Allis in the wrong place in your configuration.

I also suggest adding a virtual host (based on the name) to save the configuration in one place, rather than changing the default values.

+3

, , .htaccess. , , Sublime Text 2 UTF-8, - , . .htaccess vim, , , .

0

All Articles