Pico CMS: 404 not found error on any content page

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
peter_b
Chatterbox
Posts: 383
Joined: Tue Nov 12, 2013 2:05 am

Pico CMS: 404 not found error on any content page

Post by peter_b »

[PROBLEM]
After installing Pico CMS (v2.0) according to its documentation,
I get the default "content-sample" which explains you how to get started by adding markdown files.

I did that (or at least I thought I did), but regardless of how many subfolders and .md pagefiles I've added:
I kept seeing the content-sample page, or a "404 site not found" error when trying to access a subarticle.


[SOLUTION]
You must have an "index.md" file in your main "content" subfolder!
I know this sounds obvious, but in my case, I already created subfolder structures and assumed that Pico would generate an Index for me, if there is no "index.md" file to load.
Like Apache's folder listing.

Well Pico doesn't ;)
But that's fine. I just didn't think that I had to take the docs that literally. :P

So after I've added this puzzle-key: "pico/content/index.md", all other subpages that 404'd before now loaded fine and properly.

Thanks Pico-devs!
Post Reply