Symfony4 how to create a custom error page 404
You have to start by installing the necessary bundle: composer require symfony/twig-pack When done, create the template error404.html.twig templates/ └─ bundles/ └─ TwigBundle/ └─ Exception/ └─ error404.html.twig Example of the error404.html.twig template {% extends ‘base.html.twig’ %} {% block body %} <h1>Page not found</h1> <p> The requested page couldn’t be located. Checkout for any URL misspelling … Read more