February 27th, 2012, 01:37 PM
Apache (MAMP) will not parse .htaccess files
I'm using MAMP on a fresh installation of OSX 10.7 Lion. For some reason, I can't get Apache to parse any .htaccess files - they all have proper permissions (owned by my user:group and set to 0755), and all .htaccess AllowOverride directives are set to All, rather than "None".
I've also edited OSX's "secret" httpd.confs in /private/etc/apache2 and /private/etc/apache2/users/ to reflect the aforementioned.
Am I missing something? Please let me know - I greatly appreciate any advice you guys can offer.
February 27th, 2012, 02:18 PM
So if you put random nonsense in them you do not get 500 errors?
February 27th, 2012, 02:33 PM
February 27th, 2012, 04:37 PM
1. The files aren't named exactly ".htaccess". On Windows it's easy to accidentally have a ".txt" extension, maybe there's a similar problem on Macs.
2. Apache is configured to look for those files under a different name. Look for an AccessFileName directive.
3. AllowOverride is still set to None and you're editing the wrong httpd.confs. As far as I can find the correct one is /Applications/MAMP/conf/apache/httpd.conf. Muck that one up and try starting Apache - you should get an error.
4. There's a AllowOverride None that's overriding the All you have earlier. Check <Directory>s.