Search

FAQ

Enabling mod_rewrite in MAMP

If you want to use rewrite rules in your .htaccess file and encounter a 500 error in your browser when accessing your website, it’s usually because the Apache module “mod_rewrite” is not enabled by default.

To enable the module, follow these steps:

  1. Stop the servers.
  2. Quit MAMP.
  3. Open the file /Applications/MAMP/conf/apache/httpd.conf in your text editor.
  4. Look for the following line:
    #LoadModule rewrite_module modules/mod_rewrite.so
  5. Remove the hash (#) at the beginning of the line.
  6. Save the changes in your text editor.
  7. Start MAMP.
  8. Start the servers.