How to create 404 pages?

16 views
Skip to first unread message

Nawwab Zia

unread,
Apr 18, 2022, 10:06:12 AM4/18/22
to nanoc
I'm sorry I'm new to nanoc and I've been searching this topic on google and on the official nanoc website but I can't find it, can anyone help me with an article link or a direct answer?

Eric Sunshine

unread,
Apr 18, 2022, 2:16:17 PM4/18/22
to na...@googlegroups.com
On Mon, Apr 18, 2022 at 10:06 AM Nawwab Zia <naww...@gmail.com> wrote:
> I'm sorry I'm new to nanoc and I've been searching this topic on google and on the official nanoc website but I can't find it, can anyone help me with an article link or a direct answer?

From nanoc's perspective, a 404 page is just another HTML file; you
can create it in nanoc as you would any other web page.

What makes a 404 page "special" is how the web server itself treats
it. You need to configure the web server to return your custom 404
HTML page for a "page not found" condition. How you do that depends
upon which web server is hosting your site. Consult this page for help
configuring your web server:
https://gohugo.io/templates/404/#automatic-loading

Nawwab Zia

unread,
Apr 20, 2022, 2:16:26 AM4/20/22
to nanoc

Thanks for your answer, I really appreciate it!
Reply all
Reply to author
Forward
0 new messages