Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mod_rewrite not working?

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?

like image 936
Aaron Avatar asked Mar 24 '26 11:03

Aaron


1 Answers

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.

like image 199
vbence Avatar answered Mar 25 '26 23:03

vbence



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!