-
Create a new page
Create a new node of type Basic page
-
Add content
Use below sample code to create this page.
<div class="error-page">
<h1>ERROR 404</h1>
<i class="fa fa-exclamation-triangle" aria-hidden="true"></i>
<p>We are sorry, but the page you were looking for doesn't exist.</p>
</div> -
Set this page as default Error 404 page
Important
When creating page, make sure you select Full HTML as Text format.
You have now successfully created Error 404 (Page not found) page.
Navigate to: Administration >> Configuration >> System
admin/config/system/site-information
And set this page as your Error 404 page and click Save Configuration button.