Here is how to enable htaccess overrides in a MAMP server for local development. This is useful to test PHP configurations where you want to use a
.htaccess file to redirect all requests to a specific file, say, an
index.php that acts as a router, enabling you to use pretty URIs such as
/users/new, etc. for your PHP application.
Enable .htaccess overrides in the entire server
<Directory /> Options Indexes FollowSymLinks AllowOverride None </Directory>
<Directory /> Options Indexes FollowSymLinks AllowOverride All </Directory>
Enable mod_rewrite log for debugging
# Mod rewrite configs RewriteEngine On RewriteLog "/Applications/MAMP/logs/rewrite.log" RewriteLogLevel 5
Then you can
tail -f /Applications/MAMP/logs/rewrite.log to debug your rewrites.