Skip to main content

Main navigation

  • Tips & Tutorials
  • About the Options
    • Building with Drupal Canvas and Jarvis
    • Request the StarterSite
    • Spin Up A Blank Drupal Site
    • Case Studies
    • Demo
  • Support
    • I'm Rod Martin
    • Contact Us
  • Training
    • Drupal in a Day Training
    • Drupal Site Building Advanced Training
    • Drupal Immersion Training
    • Custom Content Editor Training
    • Drupal AI Training
  • YouTube
    • Introduction to Drupal AI
  • Search
Home

The Redirect Module

using the redirect module
Filed Under
Modules
Publication Date
Friday, January 17th, 2025

The Redirect module is an essential tool for managing URL redirects in Drupal. It helps site administrators improve user experience and search engine optimization (SEO) by efficiently handling outdated or incorrect URLs. With its powerful features, the Redirect module is a go-to solution for managing URL changes and avoiding broken links on your site. (https://drupal.org/project/redirect)


Benefits and Features

Benefits:

  • SEO Optimization: Prevents 404 errors, helping search engines and users find content easily.
  • Improved User Experience: Redirects users to the correct page automatically.
  • Content Management Flexibility: Handles URL changes seamlessly during site restructuring.
  • Analytics Tracking: Log and monitor redirect activity for insights.

Features:

  • Create and manage manual redirects easily.
  • Automatically create redirects when paths are updated.
  • Support for 301 (permanent) and 302 (temporary) redirects.
  • Integration with the Pathauto module for streamlined path management.
  • Redirect logging for tracking and debugging.

Installation

Head over to https://drupal.org/project/redirect.  Go to the bottom of the page and click on the copy icon for the version of the module that works with your version of Drupal and is recommended by the project maintainer.

Image
screenshot of the redirect module page

Configuration

Step 1: Access Redirect Settings

  1. Navigate to Configuration > URL redirects from the admin menu.
  2. Click "Add redirect" to create a new redirect.

Step 2: Create a Redirect

  1. Source Path: Enter the old or incorrect URL path (relative to the site root, e.g., old-page).
  2. Redirect To: Specify the destination URL or select an internal path from the content list.
  3. Redirect Status:
    • Choose "301 Moved Permanently" for permanent redirects.
    • Choose "302 Found" for temporary redirects.
  4. Save the redirect.

Step 3: Manage Redirects

  1. View and edit existing redirects from the main Redirect page.
  2. Use the filters to search for specific redirects.

Step 4: Enable Automatic Redirects (Optional)

  1. Navigate to Configuration > Search and Metadata > URL redirects.
  2. Enable "Automatically create redirects when URL aliases are changed."
  3. Save configuration.

Using the Redirect Module

Managing Bulk Redirects

  1. Use the bulk upload feature by importing redirects from a CSV file.
  2. Format the CSV with columns for "Source" and "Redirect to."

Debugging Redirects

  1. Check the redirect logs to ensure they are functioning as expected.
  2. Navigate to the Reports > Recent log messages to view redirect-related events.

Best Practices

  1. Avoid Redirect Chains: Ensure that each redirect goes directly to the final destination without multiple hops.
  2. Use Descriptive Paths: Keep paths user-friendly and SEO-optimized for better search engine indexing.
  3. Test Redirects: Always test redirects in a staging environment before applying them to a live site.

Use Case Scenarios

1. URL Restructuring During Migration

When migrating content to a new site structure, use the Redirect module to map old URLs to new ones. This ensures continuity for users and search engines.

2. Handling Deleted Content

For content that has been removed, redirect visitors to a relevant page (e.g., the homepage or a related article) instead of displaying a 404 error.

3. Marketing Campaigns

Set up short, user-friendly URLs for marketing campaigns (or your own URL redirect service like https://rodsurl.com ) and redirect them to the full landing page URLs for better tracking and user experience.


This video will show you how to create your own URL Redirect service!

 

Latest Tips

  • 20 Client Sites, No Git, and Drupal 10 Ends December 9
  • Drupal 10 Ends December 9: The Freelancer's Client Upgrade Checklist
  • Speaking at Drupal Camp Chattanooga
  • How Long Does It Take to Move a Layout Builder Site to Drupal Canvas? I Timed My Own.
  • Your AI API Keys Belong in the Key Module: Drupal AI Setup in 60 Seconds
  • Three AI Projects That Actually Paid for Themselves
  • Build a Single Directory Component From Scratch, Then Drop It Into Drupal Canvas (Full Walkthrough)
  • Drupal AI Training at Drupal GovCon - August 2026
  • Drupal's Site-Building Direction Isn't Settled Yet. Here's How to Build Anyway.
  • I Built a Daily Content Delivery System. Drupal is the Glue. Claude Connects the Pieces

Request the Starter Site
Schedule a Consultation
Share on Facebook (opens in new tab) Share on X (opens in new tab) Share on LinkedIn (opens in new tab) Share by email

Copyright 2026 DrupalHelps.com | Rod Martin

Drupal is a registered trademark of Dries Buytaert.