Quantcast
Viewing latest article 3
Browse Latest Browse All 6

How to enable mod_rewrite on MacOSX, Mountain Lion

After having to repeatedly enable it on a couple of my laptops, I decided to back up the 3 steps for future use.

Step 1: /etc/apache2/users/username.conf

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

Step 2: /etc/apache2/httpd.conf

LoadModule rewrite_module libexec/apache2/mod_rewrite.so

...

DocumentRoot "/Users/username/Sites"

<Directory />
    Options FollowSymLinks
    AllowOverride All
    Order deny,allow
    Deny from all
</Directory>

...

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

Step 3: Restart apache

sudo apachectl restart

The post How to enable mod_rewrite on MacOSX, Mountain Lion appeared first on MunchPress.


Viewing latest article 3
Browse Latest Browse All 6

Trending Articles