Steps to Enable mod_rewrite in MAMP
1. Locate the Apache Configuration File
Open the Apache configuration file used by MAMP:
You can open it in a text editor:
2. Enable mod_rewrite
- Search for the line that includes
mod_rewrite: - Uncomment it by removing the
#:
3. Allow Overrides for .htaccess
- Look for the
<Directory>directive for your document root. It should look something like this: - Change
AllowOverride NonetoAllowOverride Allto allow.htaccessfiles to work:
4. Restart Apache
- Restart MAMP to apply the changes:
- Open the MAMP application.
- Stop the servers using the "Stop Servers" button.
- Start the servers again using the "Start Servers" button.
thank you :)
ReplyDeletePost a Comment