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:
- Stop the servers.
- Quit MAMP.
- Open the file /Applications/MAMP/conf/apache/httpd.conf in your text editor.
- Look for the following line:
#LoadModule rewrite_module modules/mod_rewrite.so
- Remove the hash (
#
) at the beginning of the line. - Save the changes in your text editor.
- Start MAMP.
- Start the servers.