How to get htaccess to work on MAMP

aurel picture aurel · Oct 6, 2011 · Viewed 106.5k times · Source

I am trying to get the .htaccess working in MAMP.

The content of the .htaccess is a simple redirect line but it does not work. I am trying to manipulate URLs of a WordPress page, so I added the .htaccess file in my theme folder, but it is not working.

Is there any settings within MAMP i need to change to get the .htaccess file to work?

Answer

Emanuil Rusev picture Emanuil Rusev · Jan 28, 2014
  1. In httpd.conf on /Applications/MAMP/conf/apache, find:

    <Directory />
        Options Indexes FollowSymLinks
        AllowOverride None
    </Directory>
    
  2. Replace None with All.

  3. Restart MAMP servers.