MAMP: Subpages aren't loading even with htaccess file

I’m trying to setup Kirby locally using MAMP. My MAMP setup I have it so I can point run multiple sites as virtual hosts. I use this code:

NameVirtualHost * 

<VirtualHost *> 
DocumentRoot "/Applications/MAMP/htdocs" 
ServerName localhost 
</VirtualHost> 

<VirtualHost *> 
DocumentRoot "/Users/oscargodson/Dropbox/projects/icarus" 
ServerName dev.icarus
</VirtualHost>

When I go to dev.icarus the initial page loads totally fine. All the CSS, images, everything. Once I try to go to a subpage, including the panel, I get the 404. I know for sure the htaccess file is in the folder. I tried using the git install and the manual zip install. I also made sure in in my httpd.conf file I have rewrite turned on

LoadModule rewrite_module modules/mod_rewrite.so

I’m not sure what else to look up. Googling just kept returning results for htaccess file being missing.

Took me awhile but I think I got it

In the httpd.conf file I had to change

<Directory />
    Options Indexes FollowSymLinks
    AllowOverride None
</Directory>

to

<Directory />
    Options Indexes FollowSymLinks
    AllowOverride All
</Directory>

Then I restarted MAMP and it worked!

1 Like