Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Redirect 4xx

No security coverage
View on drupal.org

This module allows site administrators to redirect any 4xx error, such as 404 Not Found or 403 Forbidden, to a user-defined URL. It provides a way to unify error handling under a single page, which can be useful for specific site requirements.

This module allows site administrators to unify error pages by redirecting any 4xx error (e.g., 403, 404, 410) responses to a specific URL. While redirecting error pages can negatively impact SEO, this module provides an option for cases where it is necessary.

Features

  • Redirects all 4xx errors (e.g., 403, 404, 410) to user-defined paths.
  • Supports configurable HTTP status codes for redirection (any 3xx status can be selected).
  • Redirects are limited to internal paths, but there is no strict validation, allowing flexibility (e.g., returning static HTML responses).
  • Helps unify error page handling under a single URL.
  • Can be useful for sites that require custom error page behavior, such as membership-based sites where unauthorized users should be sent to a login page.

Post-Installation

  1. After installing the module, navigate to the configuration page: /admin/config/system/redirect4xx.
  2. Define the redirect destinations for different 4xx error codes.
  3. Choose the HTTP status code (e.g., 301, 302, 307) for each redirect.
  4. Once configured, the module will automatically redirect users encountering 4xx errors to the specified internal URLs.

Additional Requirements

No additional dependencies beyond Drupal core.

Similar Projects

  • Redirect – A general-purpose module for managing URL redirects but does not specifically target 4xx errors.
  • Redirect 404 to Home Page – Focuses only on redirecting 404 errors to the home page.

Supporting this Module

Currently, there are no plans for external funding or support programs.

Community Documentation

No external documentation is currently available.

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
1
Tracked since
Feb 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.x-dev Dev 10–11 Feb 10, 2025