Content folders "not found"

My content folder are not found by the browser.

I started a new Kirby project with a new starter-kit I freshly downloaded.

For some clarity I watched the turorials again and already in the 3rd video, where we see how localhost:8080/projects leads to this specific folder and its txt file I run into problems:

I get “Not Found, The requested URL was not found on this server.”

Despite that I created a subfolder into “content” including a file called “projects.txt”, should the browser not show the error folder?

I created more folders into my content folder but can only see “home” when entering localhost:8888 (for me 8888 works)

I am using mamp 6.9 and php version 8.2.0

Any clues why allready this most basic function of Kirby does not work for me?

Thank you for helping!

Update: I tried entering localhost:8888/content/ into my browser and I do find a list of the content of kirby’s content folder, my folder “projects” and its txt file are there. Still, I cannot find them via localhost:8888/projects like in the tutorial or in my previous projects. Thanks fot the help

Update II:
not even the localhost:8888/panel is found, so it might be something else.

I solved it. Chatgpt made me first check if php is running correctly, which was the case and then let me create a .htaccess document in my kirby project forlder with the content of RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

now it works. Is this a save solution? Why was it missing in the first place?

Sounds like you didn’t copy over the .htaccess file to your setup. Make sure that it is there.

1 Like

Instead of the one from ChatGPT, better use the one included in the starter kit: https://github.com/getkirby/starterkit/blob/main/.htaccess

great! Thanks a lot!