How can I make custom 404 pages?
Platform.sh DevRel
I’d like to serve my own HTML for 404 (and other HTTP codes).
0
Comments
You will have to include lines for handling 404 response codes in your application code. In a Python web framework like Django, include it in a
views.pyfile.and then update
urls.py:(Source)
In PHP you can include it in your main
passthrufile in the application directory,index.php. Within that file, you can then point to the custom 404 html file:Please sign in to leave a comment.