Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix "error `/' not found" error about jekyll in localhost:4000

Tags:

jekyll

blogs

When I run jekyll serve, I open the site localhost:4000 in the browser. Partial pages shows 404. And the serve indicates the error "error `/' not found" .
But when open the site use 'https://username.github.io', it's just be all normal.
It's completely confused.

enter image description here

like image 258
JIANGCHAO JHU Avatar asked Sep 15 '25 11:09

JIANGCHAO JHU


1 Answers

You need to change the param "baseurl" in your "_config.yml" to a path where you expect your site to be served or comment the line of "baseurl" to allow '/' to used instead.

like image 115
chafik bel Avatar answered Sep 17 '25 01:09

chafik bel