Problem with htaccess after migration

All MAMP discussions around troubleshooting and anything related to MAMP. Be as detailed as possible here when posting an issue.
Post Reply
JulioKR
Posts: 3
Joined: Fri Dec 13, 2024 2:56 pm

Problem with htaccess after migration

Post by JulioKR »

Hi, I recently replaced my old Intel MacBook with a new M4 with Sequoia. On the old MacBook I had several websites on MAMP 5 (free version)
Because the transfer of applications between my Macs was not possible, I reinstalled MAMP 7 on the new one and then manually transferred the files of the sites and the database tables.

Now the problem:
I have several Wordpress sites and a self-developed site.
The WP sites show the homepage but as soon as I click on an internal link, “The requested URL was not found on this server.” appears.
My self-developed site did not appear at all in the MAMP index.

After many attempts I found out that the problem is obviously that my local websites are not executing the .htacccess for some unknown reason.

For to be sure I have installed a brand new WP site, same problem. As soon as I set permalinks the page links don't work anymore. ( attaches is generated)

If I rename the .htacccess on my self-developed site, the site appears in the index and the HP works but the links (logically do not work).

For your information the permissions of the .htacccess are set to 644.

Does anyone have the same problem or a solution. I would be very grateful.
Thanks in advance.
JulioKR
Posts: 3
Joined: Fri Dec 13, 2024 2:56 pm

Re: Problem with htaccess after migration

Post by JulioKR »

Finally after one investigating I installed MAMP 6.9 and everything looks to work fine. Maybe a bug of 7.2 ?
JulioKR
Posts: 3
Joined: Fri Dec 13, 2024 2:56 pm

Re: Problem with htaccess after migration

Post by JulioKR »

For information
I have reported the bug in the MAMP bugbase and received the following answer.

1. Open the file "/Applications/MAMP/conf/apache/httpd.conf" in a text editor
2. Change the line
#LoadModule rewrite_module modules/mod_rewrite.so
to
LoadModule rewrite_module modules/mod_rewrite.so
3. Save the file and restart the server.

As of MAMP 7.3, this will be the case by default.
AlphaKilo
Posts: 1
Joined: Mon Dec 30, 2024 4:03 pm

Re: Problem with htaccess after migration

Post by AlphaKilo »

Thank you for doing the right thing and posting the solution for the rest of us. I've spent literally the past five hours backing up, uninstalling, reinstalling, uninstalling again, reinstalling again, editing config files, googling aimlessly, and whatnot to no avail. Your post fixed the issue for me. The internet needs more people like yourself! I only made an account here to let you know that. Thanks again!
Post Reply