OSX and .htaccess files

The other day, I was trying to install some script – and needed to edit an .htaccess file that was supposed to be inside the archive. I couldn’t find it – because it was invisible! I forgot that OSX is Unix based.

Here are some instructions to make those files visible on the local side, and still be able to test your site in local mode. (many thanks to Didier Laget for this tip!)

  • Open your httpd.conf file.
  • Look for the following expression : AccessFileName .htaccess
  • Remove the dot left of htaccess.
  • Save the file.
  • Restart the webserver.

Now you can edit htaccess, it will work, and it will NOT be invisible!