I have a OS X 10.6 install working, with Apache and PHP installed.
However, I cannot get mod_rewrite working. The contents of my httpd.conf is located here: http://pastie.org/828990
Does anyone know what vital thing I'm missing?
|
I have a OS X 10.6 install working, with Apache and PHP installed. However, I cannot get mod_rewrite working. The contents of my httpd.conf is located here: http://pastie.org/828990 Does anyone know what vital thing I'm missing?
| |||
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
You also need to update /etc/apache2/users/[name].conf where name is your user name on your computer. If that file doesn't exist, create it. Then update it to allow mod_rewrite rules:
| |||
|
feedback
|
|
You need "RewriteEngine = on" somewhere in your config, but I can't see it anywhere. This turns on RewriteRule, etc. | |||||
feedback
|
|
Keith Norman's answer is correct. However, in my case - a cusual home server I use for hobbying/testing - I work directly off the "base" directory of the HTTP server, rather than a
Previously it stated:
| |||
|
feedback
|
/private/etc/apache2/extra/httpd-vhosts.conf? – Olivier Pons Nov 23 '11 at 21:00