[abandoned] How to add a "404 page not found" on my website?


Hello !

So, I created a page specifically for the 404 error, but I can not get Glitch to use it to replace the page with “not found”.

Could you help me ?
Thank you very much.


Are you using something like Express, or did you use the ‘webpage’ option when creating the project and thus have static files?


I did not use Express


Hello @Darkyyyyy

I’ll happily help you to add a 404 error page to your server,
just send me a invite in DMs.


Okay ! I send you that


Hello !

I’m sending this message just to say that I’m still looking for help :sweat_smile:


You’ve made a website project, you should use the hello-express template. then use my example.


I do not know how to use “express”, it’s for his that I ask here because I went around the internet …
I’m giving up…


This page in the Express docs explains how to use routing https://expressjs.com/en/guide/routing.html, and how to add a 404 is explained here: https://expressjs.com/en/starter/faq.html