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


#1

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.


#2

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


#3

I did not use Express


#4

Hello @Darkyyyyy

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


#5

Okay ! I send you that


#6

Hello !

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


#7

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


#8

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…


#9

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