I have 3 custom error pages (404.shtml, 500.shtml and 503.shtml) on my Github repository connected to Cloudflare Pages.
When I try to visit a page that does not exist, the custom 404 page does not work; it displays the content of my
index.html file instead.
From Cloudflare Pages documentation I understand that for the custom 404 page to work I need to change the extension to
404.html instead of
404.shtml, is that the correct understanding?
Additionally, will modifying the
.html extension ones make them work?
Or does Cloudflare not allow custom error pages for 500 and 503 error?
Cloudflare plan - Free
Domain - protonservershost.com
Web page to test custom 404 page not working (This page does not exist) - https://protonservershost.com/abc.html
If you have a
404.html page in your Pages project we will show that yes.
We do not support
503 should never show and
500 is either inside your handling so we couldn’t or it’s an issue our side and we couldn’t.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.