How to edit page not fund?


#1

i tryed editing the 404 page not fund error but glitch is taking over of that, is there is a way to change it?


#2

You should be able to send your own 404 page. What URL are you testing it on?


#3

https://gatc-the-game.glitch.me/
my friend tryed to help me but he couldn’t, this is what we have on the ‘htaccess’ file:
ErrorDocument 404 https://gatc-the-game.glitch.me/not-found-page.html


#4

Htaccess is for Apache - you should define it in your web server code using something like Express. In that case, you’d put the following after all your defined routes:

app.get('*', function(req, res){ res.status(404).send('Nothing found at that location'); });