Custom 404 page for static websites

The ability to add a 404 page for static websites would be really nice, the default 404 page on static websites is not user-friendly at all. Wouldn’t be too difficult to implement, maybe any file named “glitch/404.html” or something like that would be considered as a 404 page.

I know 404 pages are possible in non-static websites or using something 3rd-party like cloudflare workers, but this is specifically for static websites.


Current, non-customizable 404 page for reference:

1. Weird, generic, non-user-friendly page 2. Equally non-user-friendly page 3. Even weirder page

Implementation ideas:

1. As a file context menu option 2. In the “new file” dialog 3. By recognizing a file path

offtopic: glitch pls bring back vscode extension I beg

If you’re out of votes or unable to vote feel free to use this:

  • I’m out of votes and I would like to vote
0 voters
2 Likes

Yes! This would be a wonderful I would LOVE, love LOVE this.

1 Like

This is a great idea. I’ve never really thought of this idea though, and now I realize how helpful it would be.

1 Like

The ability to make the path used to view a file in the browser different than the file path in the filesystem would also be cool. E.g. having a file myfolder/myfile.html and being able to access it with <domain>/notmyfolder/notmyfile(.html) without using something like folders.

1 Like