Rank Math Redirections: How to Set Up and Manage Redirects in WordPress

affiliate disclosure

Disclosure: WPrBlogger is reader-supported. We may earn a commission if you purchase through our links at no extra cost to you.

Sometimes, right after I hit publish, I realize the URL slug isn’t the one I intended. Other times, I need to change a URL for SEO reasons, or a post no longer exists, and I want visitors to land on something relevant instead of a 404 error.

On a small blog, you can fix these one at a time. On a site with hundreds or thousands of posts, you need a simple, automatic system.

Several WordPress SEO plugins handle redirects, but I like Rank Math’s Redirections module because it’s easy enough for a complete beginner and powerful enough for large sites. From experience, it does the job well.

In this guide, I’ll show you how to manage redirects in WordPress with Rank Math, from the settings and configuration to match types, regex, bulk actions, and CSV import and export.

What Is Free and What Needs Rank Math PRO

The free version of Rank Math is genuinely generous here. This is how the redirects features split between PRO and Free.

  • Free: the Redirections module, every match type (including Regex), multiple source URLs per redirect, 301, 302, 307, 410, and 451 status codes, activate and deactivate, bulk actions, hit statistics, Auto Post Redirect, Debug Redirections, and one-click .htaccess and Nginx exports for backup.
  • PRO: Everything in the free version, plus redirect categories and category filtering, Scheduled Activation and Deactivation, redirects for parameterized URLs, CSV import and export, and Sync to .htaccess.

I’ll label PRO features as we go, so you know what you can use today.

Three Places You Can Create a Redirect

Rank Math lets you create redirects from three screens, each for a different situation.

The post editor: Best when you’re redirecting a post or page that still exists in WordPress. Look in the Advanced tab of the Rank Math panel, then scroll to Redirect.

WordPress editor showing Rank Math SEO settings with the Redirect toggle highlighted by a red arrow in the post editor sidebar.

The 404 Monitor: Best when visitors or crawlers are hitting broken URLs. You see the dead URL, then turn it into a redirect.

Rank Math SEO 404 Monitor in WordPress showing a logged 404 error for the URL blog/page/18, with the Redirect option highlighted and a red arrow pointing to the 404 Monitor menu.

The Redirections screen: Best for new rules. You can redirect any URL here, even one with no matching post or page, and you can use match types and regex.

Rank Math SEO Redirections dashboard in WordPress showing the Add New button highlighted and an existing 301 redirect, with a red arrow pointing to the Redirections menu.

This guide focuses on the Redirections screen because it’s where you get the most control.

Step 1: Turn On the Redirections Module

Go to Rank Math SEO in your WordPress admin and click Dashboard. Scroll through the modules until you find Redirections, then toggle it on. The Settings button next to the toggle opens the Redirections tab of Rank Math’s General Settings, which is where we’ll go next.

Rank Math SEO settings page in WordPress showing the Redirections module with its Settings button and activation toggle highlighted in red.

If you can’t see the Redirections module, switch Rank Math from Easy Mode to Advanced Mode first. Several redirect options only appear in Advanced Mode.

Step 2: Configure the Redirection Settings

Before you create any rules, set the behavior you want Rank Math to follow automatically. Go to Rank Math SEO > General Settings > Redirections. You only need to think about four options.

Rank Math SEO Redirections settings in WordPress showing the Debug Redirections toggle, fallback behavior options, 301 permanent redirect type, and Auto Post Redirect setting highlighted in red.

Fallback Behavior: This controls what happens when a redirect’s destination can’t be found. You can keep the default 404, redirect to your homepage, or send visitors to a custom URL. The choice is yours.

I recommend keeping the default 404 unless you have a clear reason to change it. Sending every missing page to the homepage can look like a soft 404 to Google, and it doesn’t help visitors who wanted something specific.

Redirection Type: This sets the default type Rank Math uses when you create a new redirect. It’s 301 Permanent Move by default, and you can override it on any individual redirect.

Leave it as it is unless you know what you’re doing.

Auto Post Redirect: This creates a redirect automatically whenever you change the URL slug of a post. WordPress already does this for posts, but only for posts.

Rank Math extends it to pages, taxonomies, and custom post types, and the redirects it creates are always 301 Permanent Moves.

This is the setting that saves you when you publish with the wrong slug, so I recommend turning it on.

Debug Redirections: This places an interstitial screen between the old URL and the new one whenever a logged-in administrator follows a redirect. It shows which rule triggered the redirect and includes a link to that rule.

Rank Math SEO redirection debugger showing a URL redirect from an old content marketing ideas page to the content marketing strategies page.

The screen only appears for about five seconds, and regular visitors never see it. Keep it off day to day and turn it on when you’re troubleshooting.

Click Save Changes when you’re done.

Step 3: Get to Know the Redirections Screen

Go to Rank Math SEO > Redirections. At the top, you’ll see five buttons:

Rank Math SEO Redirections dashboard in WordPress showing the Add New, Import & Export, Learn More, Manage Categories, and Settings buttons highlighted in red.
  • Add New opens the form for creating a redirect.
  • Import & Export is where you back up redirects or work with CSV files (CSV is PRO).
  • Learn More links to Rank Math’s documentation.
  • Manage Categories lets you organize redirects into groups (PRO).
  • Settings jumps back to the Redirections tab in General Settings.

Step 4: Create a Redirect

Click Add New to open the Add Redirection form. Here’s what each field does.

Rank Math SEO Add Redirection form in WordPress showing source URLs, destination URL, redirection types, activation status, categories, and scheduling options.

Source URLs: This is the old URL you’re redirecting from. Paste the full address, or just the path after your domain, and Rank Math removes the domain and extra slashes for you.

Match type: The dropdown next to the source box tells Rank Math how to compare the source with the URL a visitor requests. The options are Exact, Contains, Starts With, Ends With, and Regex. I explain each one below.

Ignore Case: URLs are case-sensitive. If you’re sure no uppercase version of the URL leads to a different page, tick this box so both versions redirect.

Add another: A redirect can have several sources pointing to one destination, and each source can use its own match type. I love this setup. I can set an exact link, any URL containing certain words, and URLs starting or ending with specific words, all pointing to one destination.

It gives me more control over internal link management and helps me consolidate topically related posts I’ve deleted.

Destination URL: This is where visitors should land. Use the full URL, including https and your domain, to avoid confusion. The destination can be a page on your site, an external site, or even a file such as a PDF. You can skip this field for 410 and 451 responses.

Redirection Type: Choose the status code that tells search engines what happened. More on that in a moment.

Status: New redirects are active by default. Choose Deactivate if you want to build a redirect now and switch it on later.

Redirection Category (PRO): Optional, but worth using once your list grows. You can pick an existing category or create one on the spot. I prefer creating categories while I’m adding the redirect, because that’s when I know the context and topic best.

Scheduled Activation and Scheduled Deactivation (PRO): These let you set the dates a redirect switches on and off. Scheduling is handy for seasonal promotions, or when you’re rebuilding a page and need to send traffic to a temporary URL for a while.

Finally, click Add Redirection to save.

Match Types Explained

Match types are what make Rank Math useful on big sites. Instead of creating hundreds of single redirects, you describe a pattern.

Rank Math SEO redirection settings showing source URL matching options, including Exact, Contains, Starts With, End With, and Regex.
  • Exact redirects only when the requested URL matches your source exactly. Even a small difference means no redirect. Use it for one-to-one moves, like changing a single post’s slug.
  • Contains redirects any URL that includes your text. If you enter black-friday, every URL with that phrase goes to the destination. This is useful when big news or a seasonal event makes you want to funnel traffic from many older posts to one new page. Pair it with Scheduled Deactivation (PRO), and it turns itself off when the event ends.
  • Starts With redirects every URL that begins with your text. Entering seo- would catch seo-tips-for-beginners but not technical-seo-guide.
  • End With redirects every URL that ends with your text. It’s useful when a group of posts shares the same suffix, like a year.
  • Regex matches URLs using a pattern. It’s the most flexible option, and the next section explains it in plain English.

Choosing the Right Redirection Type

Use the proper HTTP status code so you send Google the right signal.

  • 301 Permanent Move: the old URL has moved for good. Use it for slug changes, merged posts, and any permanent change. This is the default.
  • 302 Temporary Move and 307 Temporary Redirect: the move is temporary, and you plan to use the original URL again. The two differ technically, including how they handle caching and the request format, but for most bloggers they work almost interchangeably. They’re also a sensible pick for links whose destination you may change later, because browsers can cache a 301.
  • 410 Content Deleted: the page is gone, and there’s no suitable replacement. Search engines naturally drop the page from their index when they see a 410.
  • 451 Content Unavailable for Legal Reasons: the content is restricted for legal reasons, such as age or location rules.

Two things to remember!

First, 410 and 451 aren’t true redirects, so there’s no destination, and you can’t combine them with a redirect type. Second, if a deleted post has no close replacement, a 410 is usually cleaner than redirecting it to an unrelated page or the homepage.

How to Use Regex Redirects in Rank Math

Regex is short for regular expression. It’s a pattern that describes a group of URLs, so one rule can replace hundreds of individual redirects. If the word sounds intimidating, think of it as an advanced wildcard.

Rank Math SEO redirection settings showing the Regex source URL matching option selected, with an arrow highlighting the dropdown and fields for the source URL, destination URL, and redirection type.

The Few Symbols You Need

  • ^ marks the start of the URL path, which keeps the rule from matching in the middle of a URL.
  • . stands for any single character.
  • * means zero or more of the thing before it.
  • .* together means any text at all.
  • (.*) wraps that text in parentheses so Rank Math remembers whatever it matched.
  • $1 in the Destination URL pastes the remembered text back in.

That last pair is the trick behind most regex redirects: it captures the part of the URL that stays the same, and reuses it in the new address.

Why You Would Use Regex

Regex earns its place when a rule would otherwise need many redirects. The common cases are:

  • You changed your permalink structure or removed a folder from your URLs.
  • You want dates out of your post URLs.
  • You retired a whole section of the site and want every old URL to go to one new page.
  • You need to clean up a pattern, such as a leftover file extension.

Example 1: Remove a Folder From Your URLs

Say your tutorials used to live under /wordpress-tutorials/ and you now want them at the root. Select Regex as the match type and enter:

  • Source URL: ^wordpress-tutorials/(.*)
  • Destination URL: https://yourdomain.com/$1

Now a visitor requesting yourdomain.com/wordpress-tutorials/install-plugin/ lands on yourdomain.com/install-plugin/. The same happens for every URL in that folder. Replace yourdomain.com with your own domain.

Example 2: Remove Dates From Post URLs

If your old permalinks looked like yourdomain.com/2024/05/14/post-name/, this source pattern matches the year, month, and day, then captures the slug:

  • Source URL: \d{4}/\d{2}/\d{2}/(.*)
  • Destination URL: /$1/

Here \d{4} means four digits, and \d{2} means two digits. If your URLs only include the year and month, try a different source pattern, like \d{4}/\d{2}/([a-zA-Z0-9_.-]+)$, with the same destination.

Example 3: Send a Retired Section to One Page

If you stopped publishing hosting reviews, for example, and want every old review to land on one roundup page:

  • Source URL: ^hosting-reviews/(.*)
  • Destination URL: https://yourdomain.com/best-wordpress-hosting/

Notice there’s no $1 here. You’re not reusing the captured text, because every old URL goes to the same place.

Stay Safe With Regex

A small mistake can match far more URLs than you intended, and a bad pattern can make whole sections of your site seem to disappear. A few habits to keep you safe:

  • Try your pattern in a free tester such as regex101.com before using it live.
  • Start patterns with ^ so they only match from the beginning of the URL path.
  • Use a simpler match type when it will do. If you’re redirecting one URL, Exact is safer than Regex.
  • Back up your redirects first (see the backup section below).
  • After saving, test a few real URLs in a private browser window, and turn on Debug Redirections if something behaves strangely.

Manage Redirects at Scale

Once you have dozens or hundreds of redirects, organization matters more than creation. Rank Math gives you several tools for that.

Search: The search box finds redirects that contain your exact search term. Don’t add spaces, and include hyphens and slashes where they appear in the URL. Searching for for-beginners returns every redirect with that text.

Filter by status: Above the redirects list, you’ll see four links: All, Active, Inactive, and Trash. Each has a count next to it. Click one to see only those redirects, which makes it easy to find paused redirects or recover one you deleted by mistake.

Categories and filtering (PRO): Assign redirects to categories, including child categories, then use the category dropdown and the Filter button to see only that group. If you manage a large site, this saves a lot of scrolling.

Bulk actions: Tick the redirects you want, open the Bulk actions dropdown, and choose Activate, Deactivate, Move to Trash, or Add to Category. Then click Apply. It’s a real time saver when you’re cleaning up a long list.

Rank Math SEO Redirections dashboard showing the bulk actions dropdown with options to activate, deactivate, move redirects to trash, or add redirects to a category.

Redirect statistics: The list shows three useful columns: Hits (how many times the redirect has been accessed), Created, and Last Accessed. Both humans and bots are counted, so treat hits as a rough guide.

A redirect with no recent hits is a good candidate for cleanup, while one with steady hits tells you the old URL still has links or traffic pointing at it.

Back Up Your Redirects and Work With CSV Files

Losing your redirects can undo months of SEO work, so back them up. On the Import & Export screen, Rank Math lets you export your redirects as an .htaccess file for Apache servers or as a configuration file for Nginx.

Rank Math SEO redirections export settings in WordPress showing options to export redirects to CSV, .htaccess, or Nginx configuration files.

Rank Math PRO users can also use Sync to .htaccess to write redirects to that file automatically, which can make redirects faster.

CSV import and export (PRO): If you manage a large site or work for clients, CSV is the feature that sets Rank Math PRO apart. You can export your redirects, edit them in a spreadsheet, and import them back. You can also build a new list from scratch and share the spreadsheet with your team.

A CSV can include these columns: id, source, matching, destination, type, category, status, and ignore. Column headers must be lowercase, and the file needs at least the source and destination columns, or Rank Math shows a Missing one or more required columns error. Accepted values include:

  • matching: exact, contains, start, end, or regex
  • type: 301, 302, 307, 410, or 451
  • status: active or inactive
  • ignore: leave empty, or enter case

To edit an existing redirect, include its ID. To delete one, type DELETE (in capital letters) in its destination cell. After you import, Rank Math reports how many redirects were created, merged, updated, and deleted. Always export a fresh backup before a big import.

Troubleshooting Common Redirect Problems

When something goes wrong, start with a quick self-check. Open the redirect list and look for blank rules, rules with the same source and destination, and redirects to files or locations you don’t recognize.

  • A page won’t open at all: You may have created a redirect loop. This often happens when you change a slug, then change it back, so the post redirects to itself. Look for a redirect with an identical source and destination and delete it.
  • A redirect isn’t working: Clear your caching plugin, then your browser and server caches, and test again.
  • A redirect fires that you didn’t expect: Turn on Debug Redirections and follow the Manage This Redirection link to find the rule responsible. A broad Contains or Regex rule is a common cause.
  • Redirects won’t save: Go to Rank Math SEO > Status & Tools > Database Tools (Advanced Mode) and click Re-create Missing Database Tables.
  • A warning about the domain appearing twice: Check your destination URL. It likely contains your domain two times, like a full URL pasted after another full URL.

Redirect Best Practices

  • Redirect to the closest relevant page: Sending an old post to an unrelated page or the homepage frustrates visitors and rarely helps SEO.
  • Update your internal links to point to the new URL: A redirect is a safety net, not a replacement for fixing your links.
  • Avoid redirect chains, where A goes to B and B goes to C: Point the old URL straight at the final destination.
  • Use 301 for permanent changes, 302 or 307 for temporary ones, and 410 for content that’s gone for good.
  • Keep your URLs consistent about trailing slashes: WordPress usually handles this through your permalink structure, but /page and /page/ can be treated as separate URLs by search engines.
  • Check the 404 Monitor and Google Search Console from time to time for broken URLs worth redirecting.

Frequently Asked Questions

Final Thoughts

Redirects are one of those behind-the-scenes jobs that protect your traffic, your rankings, and your visitors’ experience.

Rank Math makes them painless: turn on Auto Post Redirect so slug changes take care of themselves, use match types and multiple sources to handle groups of URLs, and reach for regex when a pattern would save you from creating dozens of rules.

If you manage a large site, PRO’s categories, scheduling, and CSV tools make the whole process far easier to maintain. Start with the settings, create one simple redirect, and build from there.

Shamsudeen Adeshokan

About The Author

Shamsudeen is a WordPress expert with 10+ years of blogging experience, helping beginners build and grow successful websites.

Featured on Search Engine Land, HuffPost, SEO PowerSuite, ProBlogger, and more, Shamsudeen shares practical tutorials, expert tips, and step-by-step guides to make WordPress easy for everyone.

Let's connect on social media platforms...

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top