Use case: 404/403 pages
Last updated on
30 January 2021
- Install the Simple Block module which allows you to create simple text blocks that are exportable, these blocks will be used to serve the content for our 404 page.
- To create a simple block, go to Administration -> Structure -> Block layout -> Simple blocks
- Create a new page called 404.
- go to Administration -> Structure -> Pages
- Set the page path to /404
- Go to the Layout for that page and add your Simple block.
- go to Administration -> Structure -> Pages
- Press the Layout button for your newly created 404 page
- Set the Default 404 under Basic site settings to your newly created page path.
- go to Administration -> Configuration -> Basic site settings
- Set the Default 404 under Error pages to be /404
Now visit a URL that does not exists and you will see your 404 page! Following the same instructions you can create a page for 403 as well.

Help improve this page
Page status: No known problems
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion