This project is not covered by Drupal’s security advisory policy.

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.

Supporting organizations: 

Project information

  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Project categories: Search engine optimization (SEO)
  • Created by u7aro on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases