Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Better Page Not Found

No security coverage Under active development 21 sites

This module enhances 404 (page not found) and 401/402 (not authorized) pages by replacing the default content with a clear, themed message and a "Go to homepage" button. It maintains your site's header, footer, and overall styling for a consistent user experience.

This module automatically improves the layout of 404 (page not found)
and 401 and 402 (not authorized) pages. If the current page is an 404
(or 401 or 402) page then it replaces the page content with a themed
message.
It does not replace other page items, so the error page will
still show your header and footer, and thus have your site styling intact.

The 404 (page not found) page will show following message:
'The requested page could not be found.' (this is translatable)

The 401 and 402 (not authorized) pages will show following message:
'Sorry, you are not authorized to access this page.' (this is translatable)

Under each message, a button 'Go to homepage' is added automatically.

If you want you can further style these messages by targeting following
classes in your css:
- .c-system-message (wrapper around the message)
- .c-system-message__text (text itself)
- .c-system-message__button (the button to the homepage)

Drupal 8–11

Ask your assistant about Better Page Not Found

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Dec 2023
Latest release
8 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
3.0.1 Stable 8–11 Jan 23, 2026
3.0.0 Stable 8–11 Aug 22, 2024
2.0.1 Stable 8–10 Dec 12, 2023