404.html page doesn't work

I’ve a custom made 404 error template and it has successfully statically generated into /404_not_found/index.html. But it doesn’t work when added to Kinsta Static (it works on localhost WordPress setup). I also tried coping /404_not_found/index.html into /404.html. But it also doesn’t work.

How can I make custom designed 404 error page work when mistyped the URLs?

Hello @kavis :wave:

You need to set your file (with full path) as an Error page in Static Site settings. Once that is done, you will need to redeploy.

(see the Error file field near the bottom)

Please try that and let me know if it works :slight_smile:

Kind regards

Thank you for your help. It worked.

You’re most welcome @kavis ! :bowing_man:
Glad to see the suggested solution from my colleague ( Vladimir M ) above helped to solve it! :clap:

If you have any questions, feel free to post a new thread!

Best regards,
Agus Utomo

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.