Kirby compatibility with MAMP?

MAMP is listed as one of the local dev environment here:

but when trying a Kirby starter kit, it opens the main page, however when clicking on any of the links (e.g. Photography, Notes, About us), or any of the images, it gives

Not Found
The requested URL was not found on this server.

This happens with the latest version of MAMP (7.1) for MacOS with either Apache or nginx as web server and either 8.2.20 and 8.3.9 as PHP versions, Kirby starter kits 4.5.0 and 3.9.8, and few others that I tried.

The same MAMP setup works fine for a “Hello world” PHP program, as well as some simple PHP templates that I tried.

I saw that another user had the same issue Kirby starter kit main not working in MAMP localhost that was solved by redownloading, but downloading again MAMP and the Kirby starter kits didn’t work for me.

Do the Kirby starter kits work for someone else with MAMP on MacOS?

Sounds lthe the hidden .htaccess file is missing. When you download kirby and unpack it, you show hidden files on the extracted files and make sure file is included your mamp folder where you are running Kirby from. This is true of all the kits.

The .htaccess is there. Looking at the file, it seemed that I can fix it by changing RewriteBase to either /starterkit-4.5.0 or / as suggested in that file but it didn’t work.

More details: both starter kits were in subfoldfers of a dev folder that is the MAMP Document root. Based on the descriptions of the rewrite rules, I thought that I need to change RewriteBase to somehow indicate that Kirby is in subfolder, but it didn’t work. When I moved the MAMP Document root to the subfolder of one of the starter kits (so that Kirby is not in a subfolder), it didn’t work either. It is possible that changing RewriteBase could fix it, but I don’t know how.

It’s a MAMP problem, mod_rewrite is disabled by default since version xx, see Broken Images and subpages on Mamp (mod_rewrite was disabled)

1 Like

Thanks a lot, that fixed it.