HTA acess/404 page not working?

How can I make a custom 404 page for my website. I use glitch to host my church’s website. New Start Online Church!

1 Like

I’m pretty sure Glitch doesn’t allow the use of custom Apache config, that is if they even use Apache at all. I’d try looking at the Express Doccumentation or try GitHub Pages.

Try glitch.com/edit/#!/remix/hello-httpd

I have a Web Server Caddy in my project. Caddy can generate custom 404.
This corresponds to the recent new feature GENERATED STATIC SITE.

https://glitch.com/edit/#!/caddyv2

For example, if you want to display 404.html in case of an error, add an attachment to Caddyfile:

handle_errors {
    rewrite * /404.html
    file_server
}
1 Like