How can I customize 404 in IHP?

111 Views Asked by At

I could not find an obvious way to handle general 404 pages in IHP.

Is there a simple way to override the default "Not Found" route on invalid pages in FrontController or Router?

1

There are 1 best solutions below

0
On

There's now an easy way to add a custom 404 page by creating a file at static/404.html. Then IHP will render that HTML file instead of displaying the default IHP not found page.

Check the documentation for more details.

(added this just in case someone get's here via google)