Skip to content

Instantly share code, notes, and snippets.

@erikbuild
Created December 1, 2011 09:15
Show Gist options
  • Select an option

  • Save erikbuild/1415242 to your computer and use it in GitHub Desktop.

Select an option

Save erikbuild/1415242 to your computer and use it in GitHub Desktop.
sudo mate yourusername.conf
You will see this:
<Directory "/Users/yourusername/Sites/">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
To enable .htaccess, change line 3 to look like this:
AllowOverride All
Save the file and enter your login info if prompted. The .conf file is owned by root, so OSX will re-authenticate to make sure you have the rights. After saving the file, open up the System Preferences, click the Sharing icon, then toggle the Web Server off then on. This will restart Apache and use your updated settings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment