Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

redirect4xx

No security coverage
View on drupal.org

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.

Activity

Total releases
1
First release
Feb 2025
Latest release
1 year ago
Release cadence
Stability
0% stable

Releases

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