Home > Uncategorized > .htaccess on Leopard

.htaccess on Leopard

April 27th, 2008 Leave a comment Go to comments

After moving my databases and websites to a new Mac with Leopard, none of the websites were working. It was as if mod_rewrite was not working. First, I noticed that the .htaccess files were all ignored. I checked the Apache configuration file in MAMP, and everything seemed fine. After over an hour of going through blogs and forums, I finally get it: Leopard (it’s my first day with it) has its own configuration file in a private folder. That file is not allowing htaccess files.

Solution
1. Open /private/etc/apache2/httpd.conf
2. Line 175 and 210: change AllowOverride none to AllowOverride All
3. Restart your server
4. Yay!

Tags: ,
  1. omar
    September 28th, 2009 at 09:54 | #1

    This is great but I get a Permission denied when I input “/private/etc/apache2/httpd.conf” into the Terminal?

  1. No trackbacks yet.