Editorial diagram distinguishes Drupal URL aliases from permanent redirects that map an old path to a new destination

Editorial illustration.

Changing a Drupal page’s path alias makes the new address easier to read, but it does not by itself guarantee that every visitor using the old URL will reach the page. That distinction matters after a content rename or site restructure: an alias is the current human-friendly address; a redirect tells a browser what to do with a previous address. Drupal core handles aliases. The widely used Redirect project adds managed redirect records and related tools.

Summary

  • Use Drupal’s core Path module to assign a readable alias to content.
  • Use the contributed Redirect module when you need to preserve old paths, manage redirects or review redirect-related 404s.
  • Install the module only when the site needs that workflow, and confirm its current release supports your Drupal version.
  • Test each changed URL for one clean redirect to the correct final page; avoid chains and loops.

Alias and redirect solve different problems

Drupal’s core Path module lets editors create URL aliases such as /about-us for an internal route such as /node/12. An alias gives a page a preferred address; it is not inherently a history of every address the page used in the past. Drupal’s Path module overview describes aliases and notes that a permanent URL change should use a 301 redirect.

The Redirect contributed project provides manual redirects and can maintain a canonical URL for content by redirecting alternative requests. Its project page lists integration with Drupal’s page cache, a redirect access API, Views integration and a separate Redirect 404 submodule that can aggregate missing requests. The same page currently lists stable release 8.x-1.13 as compatible with Drupal 10 and 11 and covered by Drupal’s security advisory policy (project details). Compatibility and release status can change, so check the project page and your Composer constraints before adding it.

Use the Path module alone if your editors only need to choose aliases and you do not need redirect history or a central redirect management screen. Consider Redirect when old links must keep working, migrations produce many path changes, or staff need to manage redirect records. If redirects already live at a CDN or web server, decide which layer is authoritative so a site does not accumulate duplicates.

Install and configure deliberately

For a Composer-managed Drupal site, the project currently documents:

composer require 'drupal/redirect:^1.13'
drush en redirect -y
drush cr

The version constraint above follows the current project page at the time of writing. Review the available release and your site’s Drupal core version before using it. In a managed deployment, update the code and configuration in development first, then deploy through the team’s normal release process. Do not run Composer directly on a live site without version control and a rollback plan.

After installation, review the module’s configuration and permissions in the Drupal administration interface. Grant redirect management to the smallest editor group that needs it. A redirect can change where a public URL sends visitors, so the ability to create or edit redirects should be treated as a publishing capability.

Create a redirect for a changed path

  1. Record the old path exactly as visitors and search engines used it, including language prefixes and trailing slash behavior where relevant.
  2. Confirm the destination exists and is the best replacement, not merely the nearest page.
  3. Add a redirect from the old path to the new canonical URL using the Redirect interface.
  4. Choose a permanent redirect for a lasting move; use a temporary redirect only when the change is expected to be reversed.
  5. Save and test the old URL in a private browser window. Confirm it lands on the expected page and does not pass through another redirect.
  6. Check internal links and menus so Drupal content points directly to the current alias.

The admin labels and available options may depend on the installed module version and site configuration. Test both anonymous and authenticated behavior if access differs by role. A redirect should not be used to hide a page that remains intentionally private.

Review 404s without making every miss permanent

The Redirect 404 submodule can help identify paths that visitors request but that no longer resolve. Review those records as evidence, not as a to-do list to redirect everything. A typo, scanner probe or one-off invalid query may not deserve a permanent redirect. Repeated requests for an old article URL are a stronger signal, especially when you can map that path to a relevant replacement.

Before creating a redirect, check whether the missing path is caused by a route access denial, a language prefix, case sensitivity, or a broken internal link. Redirecting an authorization failure can expose confusing behavior and disguise the real problem. Our guide to Drupal custom routes returning access denied helps separate routing permission checks from a missing page.

For a large site migration, build a mapping file with one old path and one final destination per row. Review duplicates, paths that point to other old paths, and targets that return 404. Import or create records in batches, then crawl a sample from every content type and language. Drupal’s Pathauto documentation explains automatic alias generation, while the Redirect project’s page recommends Pathauto integration to preserve aliases when paths change.

Avoid chains, loops and the wrong status

A chain such as /old to /middle to /new adds needless requests and can make troubleshooting harder. Update the source record so the old path points directly to the final destination. A loop, where A points to B and B points back to A, prevents the page from loading; after changing a record, test in a browser and inspect the response with a redirect checker or curl -I.

Do not redirect every deleted page to the homepage. Visitors expect a relevant replacement. If content is permanently gone and there is no equivalent, a not-found or gone response may be more accurate than sending users to unrelated content. Drupal’s Redirect module project describes redirects; the precise status-code options available depend on the installed version and configuration.

Redirects also live in cache and at the edge. If the browser appears to follow an old result after you changed the record, test with a fresh session and inspect the server response before clearing every cache. Coordinate with CDN or web-server rules to avoid competing redirect behavior. For a broader domain cutover, see our Drupal migration rehearsal checklist.

When not to add the module

Do not install a module just because one URL changed. For a new site with a few aliases and no legacy traffic, core Path may be enough. A reverse proxy or CDN can handle a small fixed set of host-level redirects, while content editors may need Drupal’s UI for page-level changes. Consider maintenance ownership, permission needs, the volume of URLs and the location where the redirect should happen.

The Redirect project page currently signals that it is seeking co-maintainers. That is not a reason by itself to avoid a stable release, but it is a useful maintenance consideration: keep the dependency updated, follow its release and security notices, and confirm that someone on your team owns it. Do not install a separate Redirect 404 project unless the included submodule does not meet a clearly defined need.

My Take

The key decision is whether the site must remember old URLs. An alias helps people read the current address; a redirect protects the path history other people already rely on. Keep the list short and purposeful. A few accurate redirects are easier to maintain than an unmanaged pile of guesses.

Conclusion

Use core aliases for current readable paths and Redirect when the site needs to preserve and manage old URLs. Verify module compatibility and ownership, restrict who can change destinations, and test each old path directly. For migrations, map old paths to final destinations before deployment and remove chains as you find them.

Sources