Hi, I’d like to have a custom 404 page instead of the plain “not found”. Surprisingly enough it is not in the docs and it seems, no one has ever asked it here. My first solution was a rewrite of * to 404.html but then I realized that that would result in a 200 on all routes which is not good.
For static sites, Render will look for a custom 404 page at /404.html. This logic kicks in for paths that don’t exist and don’t match any redirect/rewrite rules. We will update our docs to reflect this.
Hi @things_to_do_marmari , can you give me a little more information? What is the Render service that you are using that is experiencing this problem? gulet.world appears to be hosted on Namecheap, and not Render.
I have similar problem. My page is simply not deploying. Here is how terminal looks:
Successfully rebased and updated refs/heads/main.
hello-world main % rackup
Puma starting in single mode…
In Hugo, I found the solution:
my site is of a type multilingue translations by Filename
and when I had no 404 custom page, I had in hugo.toml the option :
defaultContentLanguageInSubdir = true
just comment that and the custom 404 page comes back. #defaultContentLanguageInSubdir = true