How to Configure the Drupal Redirect Module

Redirect Drupal Module - Improve SEO and UX

The Drupal Redirect module is useful for many situations common to website owners. Remember the benefits to having an active blog with content relevant to your industry:

  • Build trust with potential clients
  • Increase opportunities for brand awareness as users share your content across social media
  • Share testimonials from satisfied customers

In summary, a blog creates more reasons for users to visit your site. That leads to more opportunities to generate sales. Every few years, you should audit your blog for old posts that should be updated with newer terms, or merged with other shorter posts for more in-depth content. 

For example, maybe you have three posts discussing how to do different but somewhat related tasks with the same software and want to merge them into one comprehensive guide. After removing the old posts, it is best practice to ensure the now dead links 301 redirect to the new URL. This enhances:

  • Search engine optimization (SEO) as redirects maintain back-links from other sites
  • User experience (UX) as users on those sites won’t be sent to 404 pages

Ensuring links to your site from social networks don’t serve 404 pages keeps users from quickly leaving, or bouncing, just seconds after being disappointed by a dead-end link. Side note, the Redirect module for Drupal tracks reported 404 errors. Instead of browsing your web analytics software, you can quickly see this information in your Drupal dashboard.

Setup the Drupal Redirect Module

This is the easiest way to install the Drupal SEO module.

  1. Log into Drupal.
  2. Install the Drupal module using the Redirect download link for your Drupal version.
  3. Click Enable newly added modules.
  4. Under Other, select Redirect. For Drupal 8, you’ll also have options for Redirect 404 and Redirect Domain (for using wildcard and domain redirects).
  5. At the bottom, select Install.

Configure the Drupal 8 Redirect Module

The  8.x-1.6 stable release requires Drupal 8.8 or 9.1 and higher.

  1. Go to the Configuration page.
  2. Under Search and Metadata, select URL redirects. If you don’t see the option, clear your Drupal cache and try again.
  3. The next page is where you’ll see created redirects. Select + Add redirect.
  4. Type the old title or URL alias in the Path.
  5. Type the relative internal path (e.g. /node/1) or the absolute external path (https://example.com/1) under To.
  6. Redirect status should generally be 301 (moved permanently). Select the drop-down to choose between 300 (multiple choices), 302 (found), 303 (see other), 304 (not modified), 305 (use proxy) or 307 (temporary redirect).
  7. Save at the bottom.
  8. At the top, select the Settings tab.
  9. Here you can change default redirect status and global redirect settings. Consider decreasing the 404 error database logs to keep number if using a hosting plan with low disk space.
  10. After making changes, select Save configuration.

Configure the Drupal 7 Redirect Module

  1. Go to the Configuration page.
  2. Under Search and Metadata, select URL redirects. If you don’t see the option, clear your Drupal cache and try again.
  3. The next page is where you’ll see created redirects. Select Add URL redirect.
  4. Type the internal Drupal path or URL alias in the From.
  5. Type the relative internal path (e.g. /node/1), URL alias, or absolute external path (https://example.com/1) under To.
  6. Under Advanced Options is the Redirect status which should generally be 301 (moved permanently). Select the drop-down to choose between 300 (multiple choices), 302 (found), 303 (see other), 304 (not modified), 305 (use proxy) or 307 (temporary redirect).
  7. Save at the bottom. You’ll be redirected to the redirect list.
  8. Select Add Redirects for 404 Pages for reported 404 errors. You can add redirects from this page as well.
  9. Here you can change default redirect status, global redirect settings, and automatic redirect settings.
  10. After making changes, select Save configuration.

For more step-by-step guides and practical tips, visit our Drupal Education Channel.

Ignite your online presence with cutting-edge Drupal Website Hosting. Elevate speed, security, and reliability for a seamless website experience.

InMotion Hosting Contributor
InMotion Hosting Contributor Content Writer

InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!

More Articles by InMotion Hosting

Was this article helpful? Join the conversation!

Server Madness Sale
Score Big with Savings up to 99% Off

X