How to activate mod_rewrite on MacOSX Lion

Solution 1:

You need to add a conf file to the following dir

/etc/apache2/users/yourname.conf

<Directory "/Users/yourname/Sites/">
     Options Indexes MultiViews
     AllowOverride All
     Order allow,deny
     Allow from All
</Directory>