Free auditStart free
GuideDrupal · URL migration

Drupal URL redirects

Install Drupal's Redirect module, map changed aliases to canonical destinations, and prevent 404s and redirect chains after migrations.

5 min
read
5
sources
Oct 24, 2026
updated
Scaplet Editorial Team
author
In one line

For Drupal 10 or 11, install the Redirect module with composer require 'drupal/redirect:^1.13', then enable it and create mappings at /admin/config/search/redirect. Use a permanent redirect for a URL that has moved for good, point it directly to the final canonical path, and test the HTTP response. Pathauto can integrate with Redirect to preserve old aliases when paths change.

30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01How it works

Match the module version to your Drupal site

The Drupal.org release feed lists 8.x-1.13 (released April 24, 2026) as the current Redirect release, with core compatibility ^10 || ^11. Confirm the supported core versions on the project page before installing; older Drupal 7 instructions and module releases do not apply to a Drupal 10/11 site.
Install on Drupal 10 or 11
composer require 'drupal/redirect:^1.13'
drush en redirect -y
  1. 01

    Add the package with Composer

    From the Drupal project root, run composer require 'drupal/redirect:^1.13'. Commit the updated Composer files and lockfile with the rest of the deployment change.

  2. 02

    Enable the module

    Enable Redirect through the Extend screen or run drush en redirect -y. If you use configuration management, export the resulting configuration through your normal workflow.

  3. 03

    Open the redirect administration screen

    Use /admin/config/search/redirect (menu: Configuration > Search and metadata > URL redirects) to review and manage redirects. The route requires the administer redirects permission.

  4. 04

    Add a mapping and choose a status

    Select Add redirect, enter the old path in the Path field, and enter the new destination in the To field. Choose a Redirect status: the module's README lists 300, 301, 302, 303, 304, 305 and 307, and the default status in its install config is 301 Moved Permanently. Use 301 for a lasting move and a temporary status for a short-lived change. Do not use a permanent redirect for a destination that will soon change back.

02Choose the right redirect workflow

Redirect aliases when content URLs change

Drupal's Redirect module supports manual mappings and can maintain a canonical path by redirecting alternate requests to it. If Pathauto generates aliases, Redirect's setting "Automatically create redirects when URL aliases are changed." (on by default in the module's install config) creates a redirect from the old alias when an entity's path changes. Find it at /admin/config/search/redirect/settings. This is especially useful when migrating content or changing a URL pattern across a content type.
Change

One editorial URL changed

Workflow
Create a manual mapping from the former alias to the new canonical path.
Validation
Request the old URL directly and check the final destination.
Change

Pathauto pattern or alias changed

Workflow
Keep "Automatically create redirects when URL aliases are changed." enabled so changed aliases retain old paths.
Validation
Change a test entity alias and confirm the former alias resolves.
Change

Alternative Drupal paths resolve to one preferred path

Workflow
Review Redirect's "Enforce clean and canonical URLs." setting, which redirects to the canonical URL of a page, including an existing alias, no trailing slash and a language prefix.
Validation
Check aliases, language prefixes, and canonical tags to avoid duplicate route variants.
Change

A large batch of old paths needs review

Workflow
Create explicit mappings and review the source and target list before deployment.
Validation
Sample each content type and flag missing or unrelated replacements.
  • Use the closest relevant destination. Redirecting many old URLs to one irrelevant destination such as the home page can confuse users, and Google says it might be treated as a soft 404.
  • Map each source straight to its final destination. Googlebot can follow up to 10 hops in a redirect chain, but Google advises redirecting to the final destination directly. If the destination has moved again, update the old mapping instead of adding another hop.
  • Keep redirects for old URLs that still receive links or traffic; remove obsolete rules only after checking access logs and migration requirements.
  • For language-aware sites, verify that a path from one language resolves to its intended language version rather than silently dropping the language prefix.
03How it works

Use 404 logs to find redirects worth adding

The Redirect project includes a Redirect 404 submodule that "logs 404 errors and allows users to create redirects for often requested but missing pages." It needs the Views module, and its Fix 404 pages screen is at /admin/config/search/redirect/404, listing Path, Count and Last accessed with an Add redirect action. The logged-row limit defaults to 10000. Treat the log as a triage list: bots request random URLs, and not every 404 deserves a redirect. Prioritize old URLs from a migration, internal links, external backlinks, or landing pages with meaningful traffic.

For the search implications of permanent moves, see 301 redirects and Google Search. Use redirect chain checks to catch avoidable hops after a migration.

  1. 01

    Separate real old URLs from noise

    Review referring page, request frequency, and whether the path once existed. Ignore random probes and malformed paths unless they expose an underlying routing issue.

  2. 02

    Find a relevant replacement

    Search for an equivalent current page or restore the missing content. If no useful replacement exists, leave a genuine not-found response rather than redirecting to an unrelated page.

  3. 03

    Create and test the mapping

    Add the redirect, then request the source path without being logged in. Verify the status, Location target, final response, and language or query behavior that matters to the old URL.

  4. 04

    Fix the source link

    Update Drupal menus, body links, XML sitemaps, and campaign links to point to the final URL. Redirects should catch old references rather than power current navigation.

04A migration check that catches common failures

Verify behavior after deployment

Test

Former URL

Expected result
One redirect to the relevant destination.
Test

Destination

Expected result
A successful response with the intended canonical URL.
Test

Old internal links

Expected result
Updated to link directly to the destination.
Test

Removed page without replacement

Expected result
A meaningful 404 or 410 response, not a generic homepage redirect.
Test

Language and query variants

Expected result
Correct behavior for the site's actual URL structure, with no loop or dropped locale.

After an important move, inspect the old and new URLs in Search Console and monitor server logs for remaining requests to the old path. Google needs to recrawl redirects; module configuration alone does not update search results immediately.

Sources · 5

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • drupalcode.org
  • drupal.org
  • google.com
  1. 01Redirect README, settings form and 404 submodule | Drupal.orggit.drupalcode.org · checked 2026-10-24
  2. 02Drupal.org release history feed (Redirect)updates.drupal.org · checked 2026-10-24
  3. 03Pathauto README | Drupal.orggit.drupalcode.org · checked 2026-10-24
  4. 04Redirects and Google Search | Google Search Centraldevelopers.google.com · checked 2026-10-24
  5. 05Site Moves and Migrations | Google Search Centraldevelopers.google.com · checked 2026-10-24
Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01Does the Drupal Redirect module work with Drupal 10 and 11?

Release 8.x-1.13 lists compatibility with Drupal ^10 and ^11. Confirm the project page for the current supported release before installing.

02How do I install Redirect in Drupal?

Run composer require 'drupal/redirect:^1.13' for a Drupal 10/11 site, then enable the module and manage redirects at /admin/config/search/redirect.

03Can Drupal automatically redirect old Pathauto aliases?

Yes. Redirect's setting "Automatically create redirects when URL aliases are changed." is on in its default config, so changing a Pathauto alias creates a redirect from the old one. Test with a representative content alias.

04Should every Drupal 404 get a redirect?

No. Redirect old URLs with a useful equivalent destination. Random bot requests and deleted pages without replacements can remain genuine 404 or 410 responses.

Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane