Getting htaccess to work on a Mac (Lion) with Apache and using symlinks
Edit (sudo) /etc/apache2/users/[your-username].conf:
- Add DocumentRoot "/Users/[your-username]/Sites/" at the top of the file;
- Add FollowSymLinks to the Options;
- Change AllowOverride None to AllowOverride All;
- Change Deny from All to Allow from All.
Original:
<Directory "/Users/[your-username]/Sites/"> Options Indexes MultiViews AllowOverride None Order allow,deny Deny from All </Directory>
New:
DocumentRoot "/Users/[your-username]/Sites/" <Directory "/Users/[your-username]/Sites/"> Options Indexes MultiViews FollowSymLinks AllowOverride All Order allow,deny Allow from All </Directory>
Restart Apache: sudo apachectl graceful