Anobee

SEO & AI Search

Rank Math Redirect Guide: Set Up 301s Safely

By Bibek Thapa · Updated · 14 min read

Quick Answer

To create a Rank Math redirect, switch to Advanced mode, enable the Redirections module, open Rank Math SEO > Redirections and click Add New. Enter the old path as the source, the closest useful page as the destination, choose 301 for a permanent move or 302 or 307 for a temporary one, save, and test the status code while logged out.

WordPress redirect workflow connecting an old URL to a new destination
Table of ContentsOn this page
  1. Which redirect should you use?
  2. When should you create a redirect?
  3. Enable Rank Math redirections
  4. Four redirection settings to check first
  5. How to create a 301 redirect in Rank Math
  6. Which Rank Math redirect features are free
  7. How to use the Rank Math 404 Monitor
  8. Exact match versus regex redirects
  9. Avoid redirect chains and loops
  10. Why a Rank Math redirect is not working
  11. Managing redirects in bulk
  12. How long to keep a redirect
  13. Rank Math versus a dedicated redirect system
  14. SEO-safe redirect checklist
  15. Frequently Asked Questions
  16. Sources and References
Key Takeaways
  • Use 301 for a permanent move and 302 or 307 only when the original URL will come back.
  • Redirect to the closest useful replacement, not automatically to the homepage.
  • Set Fallback Behaviour to 404 so a redirect with a missing destination does not quietly send visitors to the homepage.
  • Turn on Auto Post Redirect so slug changes on pages, taxonomies and custom post types create a 301 automatically.
  • Redirections, all five match types, regex, 410, 451 and both 404 monitor modes are free; categories, scheduling, CSV import and .htaccess sync need PRO.
  • Test every important rule while logged out and keep redirects for at least a year after a move.

A Rank Math redirect has one job: take someone from an old URL to the closest useful replacement. The risk is that a small mistake reaches far beyond one page. A broad match can catch working URLs, a loop can make two pages unreachable, and a homepage redirect leaves visitors nowhere near what they wanted.

This guide shows how to create and test one. It also covers the settings to change before you add a single rule, which 404s deserve action, and how to troubleshoot a rule that does not fire. It also sets out exactly which redirect features are free and which need PRO, because that boundary is often described wrongly.

Verification note. Checked against Google Search Central and Rank Math's own documentation on 9 October 2026, with Rank Math version 1.0.280 current on WordPress.org. Plugin screens change between releases, so follow the linked vendor documentation if your labels differ.

Which redirect should you use?

Use a permanent redirect only when the old location is not coming back. Google treats a permanent redirect as a signal to show the target in search results. A temporary redirect keeps the source page as the likely result [1].

StatusMeaningUse it when
301Permanent redirectA post slug, category path or domain has permanently changed
302Temporary redirectThe source URL will return after a short-term change
307Temporary redirectThe move is temporary and the request method must be preserved
410Content deletedThe URL is permanently gone and has no relevant replacement
451Unavailable for legal reasonsAccess is removed because of a legal demand
Decision tree for choosing a redirect status: 301 for a permanent move, 302 or 307 for a temporary one, 410 for content deleted with no replacement, and 451 for content removed for legal reasons
For most renamed or merged WordPress pages, the answer is 301.

Rank Math groups 301, 302 and 307 as redirection types. It presents 410 and 451 as maintenance codes, because they return an error status instead of sending the visitor anywhere [3].

For most renamed or consolidated WordPress pages, 301 is correct. A 302 or 307 suits a temporary campaign, a maintenance window or a short-lived substitution. Do not choose a temporary redirect because it feels safer. Choose it only when the move itself is temporary.

When should you create a redirect?

A redirect earns its place when somebody may still request an old URL and a close replacement exists. Common cases:

  • changing a post or page slug
  • combining two overlapping articles into one stronger page
  • moving a category or directory
  • migrating from HTTP to HTTPS or to a new domain
  • replacing a deleted product with its direct successor
  • correcting a URL pattern during a platform migration

Do not create a redirect merely because a strange path appears in a 404 log. WordPress sites receive requests for typos, old scripts, vulnerable files and URLs that never existed. If there is no useful equivalent, a genuine 404 or 410 is more honest than sending everything to the homepage.

Google advises against redirecting many old URLs to one irrelevant destination. It confuses users and may be treated as a soft 404 [6].

Enable Rank Math redirections

The Redirections module sits behind Advanced mode. In WordPress:

  1. Open Rank Math SEO > Dashboard.
  2. Switch to Advanced Mode if the module is not visible.
  3. Find Redirections and turn it on.
  4. Open Rank Math SEO > Redirections.

You can create a rule from three places: the main Redirections screen, the 404 Monitor, and the Advanced tab in an individual post editor [2]. The main screen is the clearest place to create and audit standalone rules.

If the rest of Rank Math still needs configuring, work through the Rank Math setup guide before adding sitewide redirect rules.

Four redirection settings to check first

Most tutorials go straight to creating a rule. The defaults that decide what happens when a rule fails sit elsewhere, under Rank Math SEO > General Settings > Redirections. That tab only appears once the module is enabled [8].

Debug Redirections. Places an interstitial screen between the source and destination showing which rule fired. Only administrators see it. Rank Math recommends leaving it off and enabling it only while diagnosing a problem [8].

Fallback Behaviour. Decides what happens when a redirect's destination is not found: a 404, a redirect to the homepage, or a redirect to a custom URL [8]. Rank Math says there is no single recommendation. Ours is 404. A homepage fallback hides a broken destination behind a page that loads. Google warns that this kind of irrelevant redirect can be treated as a soft 404 [6]. With 404 selected, the failure at least shows up in the monitor where you can fix it.

Redirection Type. Sets the default status for new rules. Leave it at 301 so a permanent move is the default and a temporary one is a deliberate choice. You can still override it on each rule [8].

Auto Post Redirect. WordPress already redirects some changed post slugs. Rank Math extends this to posts, pages, taxonomies and custom post types. Every slug change then creates a 301 from the old URL to the new one. Rank Math recommends enabling it [8]. Turn it on, then check the Redirections list after any slug change so you know what was created.

How to create a 301 redirect in Rank Math

Open Rank Math SEO > Redirections and select Add New. Work from the old address to the new one, because reversing those fields is an easy way to build a loop.

Six steps to create a Rank Math redirect: enter the source URL, choose the match type, decide on ignore case, enter the destination, select the status and activate, then test the public response
Test while logged out. A rule that works for an administrator can still fail for the public.

1. Enter the source URL

The source is the old URL that should stop serving its original response. Rank Math accepts the full URL or the path after the domain, so for https://example.com/old-guide/ you can enter /old-guide/.

Copy the path from a crawl, analytics record, Search Console, external link or address bar. When case, slashes and directories matter, typing it from memory is an avoidable risk.

One rule can hold several source URLs that share a destination [2]. That is useful after merging a small group of closely related pages. Keep unrelated moves in separate rules so each stays easy to diagnose.

2. Choose the safest match type

Start with Exact Match for one known URL. It is the easiest to predict and test. Move beyond it only when one rule truly applies to a group of URLs:

  • Contains matches paths containing the supplied text.
  • Starts With matches paths beginning with the supplied pattern.
  • Ends With matches paths ending with the supplied pattern.
  • Regex evaluates a regular expression.

All five match types are in the free version [3] [9]. Contains, Starts With and Ends With can catch live URLs you did not intend to move. List sample matches before activating them. Regex is for a repeatable URL pattern, not a shortcut for a handful of unrelated pages.

3. Decide whether to ignore case

Enable Ignore Case only when uppercase and lowercase versions should lead to the same destination. If the server treats two case variants as different resources, confirm which one is valid first.

4. Enter the destination URL

The destination should return a successful response and satisfy the reason someone requested the old page. Use the full HTTPS URL to remove ambiguity. Before saving, open it in a private window and confirm that it:

  • returns the intended page
  • does not redirect again
  • is not blocked or marked noindex
  • has a self-referencing canonical where appropriate
  • genuinely replaces the old content

Never point a rule back to its own source. Rank Math blocks this and shows an infinite loop warning [10].

5. Select the status and activate the rule

Choose 301 Permanent Move for a permanent change, or 302 or 307 only when the original URL will return. Leave the rule active and save it.

Categories and scheduled activation or deactivation are PRO controls [2]. A normal permanent redirect needs neither.

6. Test the public response

Test every Rank Math redirect while logged out, so an administrator-only debugger or cache bypass does not hide what the public sees. Open the old URL, confirm the final page, then check the HTTP response with a redirect checker, your browser's developer tools, or this command:

curl -sIL https://example.com/old-guide/

For a simple permanent move, the result you want is one 301 followed by one 200 from the intended destination. Arriving at the right page in a browser is not enough. JavaScript, a meta refresh or a chain can look correct without returning the server-side status you meant to create.

Which Rank Math redirect features are free

Rank Math's redirect features are split more generously than many people assume. Match types and regex, often assumed to be paid, are free. The table below comes from Rank Math's own comparison page and knowledge base [9] [2] [4].

FeatureFreePRO
301, 302, 307 redirects and 410, 451 codesYesYes
Exact, Contains, Starts With, Ends With and Regex matchingYesYes
Debug RedirectionsYesYes
Redirect attachments to parent postYesYes
404 Monitor, Simple and Advanced modesYesYes
Redirect categories and filteringNoYes
Scheduled activation and deactivationNoYes
Redirects for parameterized URLsNoYes
CSV import and export of redirectsNoYes
Sync redirections to .htaccessNoYes
Export the 404 logNoYes

For a blog or small business site managing a few dozen rules, the free version covers everything this guide describes. PRO earns its place when you manage hundreds of redirects, need bulk CSV workflows, or want rules handled at the server level through .htaccess. Current pricing and the other plan tiers are set out in the Rank Math, Yoast and All in One SEO comparison.

How to use the Rank Math 404 Monitor

The 404 Monitor records paths that visitors or bots requested but WordPress could not find. Enable it from Rank Math SEO > Dashboard, then open Rank Math SEO > 404 Monitor. Like Redirections, it needs Advanced mode.

Simple mode shows the URI, hit count and last access time. Advanced mode adds the referrer and user agent but logs each request separately in more detail. Rank Math recommends Advanced mode only when Simple mode does not give you enough to solve a problem [4].

Treat the log as a queue for investigation:

What you findBest response
A broken internal linkCorrect the link on the page that contains it
An old URL with a relevant replacementAdd a permanent redirect
A typo in a valuable external linkRedirect it and, where practical, ask the source to update the link
A deleted page with no substituteKeep the 404 or return 410
Random probes for files that never existedUsually ignore them; do not create fake destinations
Many similar valid old URLsMap the pattern carefully before considering a broader rule
404 Monitor triage: fix broken internal links at the source, redirect old URLs that have a replacement, leave deleted pages as 404 or 410, ignore bot probes, and map repeated patterns before using a broad rule
A 404 log is a list of leads, not a list of redirects to create.

A high hit count can look urgent without being important, and not every entry deserves a Rank Math redirect. Bots may request the same nonexistent path hundreds of times. Use the referrer, existing links, historical traffic and the old page's purpose to decide whether a redirect would help a real visitor.

Exact match versus regex redirects

Exact Match is the default for a reason. Each source has one visible destination, and another editor can understand the rule later.

Regex earns its place when many URLs share a stable pattern. A typical case is a renamed directory where the rest of every path stays the same. Before publishing a regex rule:

  1. Export or save the list of affected URLs.
  2. Write examples that must match.
  3. Add examples that must not match.
  4. Test the pattern in a regex tester against real paths.
  5. Enable Debug Redirections on a staging site or as an administrator.
  6. Crawl the affected section after activation.

Rank Math warns that an incorrect regular expression can match far more URLs than intended [2]. If you cannot describe the intended set in one precise sentence, build individual Exact Match rules instead.

Avoid redirect chains and loops

A chain sends an old URL through one or more intermediate redirects before reaching the live page:

/old-a/ → /old-b/ → /current-page/

Change the first rule so /old-a/ points straight to /current-page/. Google advises redirecting to the final destination and keeping unavoidable chains short [6]. Each hop adds latency, and not every client follows long sequences reliably.

A loop has no final destination:

/page-a/ → /page-b/ → /page-a/

Three redirect patterns compared: a chain passing through an extra hop, a loop that never resolves and triggers Rank Math's infinite loop warning, and a correct direct redirect to the final page
Point every old URL straight at the final page. One hop, not two.

Loops can also come from a conflict between Rank Math and a server, CDN, translation plugin or WordPress's own canonical redirect. Test the complete chain, not just the rule stored in Rank Math.

After a URL move, point internal links directly at the final address. Keep the redirect for old bookmarks and external links. For larger migrations, update canonicals, hreflang annotations and XML sitemaps to the new URLs as well [6]. The XML sitemap strategy guide explains what belongs in the live sitemap.

Why a Rank Math redirect is not working

A rule can look correct in the dashboard and still be overridden somewhere else. Work through these checks in order. The early ones resolve most failures without touching other plugins or the server.

Confirm the module and the rule

Check that Advanced mode is on, the Redirections module is enabled, and the specific rule is active. Reopen the rule and compare the requested path character by character with the source.

Exact Match fails when the path differs even slightly. A broad match may be intercepted by another rule first. Confirm, too, that the destination is not the source and that the destination itself loads.

The "may cause infinite loops" error

Rank Math refuses to save a rule when it detects a loop. The message reads "The Redirection you are trying to create may cause infinite loops." There are two causes [10]. Either the source and destination are the same URL, or the destination you entered is already redirected elsewhere, often back toward the source.

Open Rank Math SEO > Redirections, look at the rules you created most recently, and find the one whose destination is already redirected. Point it at the final live page instead.

Clear every relevant cache

Purge the WordPress page cache, hosting cache, reverse proxy and CDN. Then test in a private window or with curl. A cached response can be served before WordPress evaluates the new rule, though caching is only one possible cause. Rank Math's troubleshooting guide covers redirects that fail on cached pages specifically [5].

Look for another redirect owner

A redirect can be created at several layers:

  • CDN or edge rules
  • web server configuration
  • the hosting control panel
  • WordPress core behaviour
  • another redirect, security or SEO plugin
  • theme or custom PHP code
Layers that can own a WordPress redirect, from CDN and edge rules through web server, hosting panel, WordPress core and plugins to theme code, showing a request intercepted before reaching Rank Math
A rule higher in the stack wins. Check these layers before adding a second rule.

Inspect those layers before stacking a second rule over an unknown first one. If you need to disable plugins, do it on staging or in a maintenance window and restore them one at a time.

Turn on Debug Redirections

Enable Debug Redirections under Rank Math SEO > General Settings > Redirections. Rank Math then shows administrators an interstitial naming the rule that matched before completing the redirect [5]. Ordinary visitors never see it. Turn it off once the problem is solved.

Check query strings and pattern rules

Find out whether a tracking parameter or query string changes the match. Redirects for parameterized URLs are a PRO feature, and Rank Math passes parameters through to the destination by default [2].

For regex, reduce the rule to a single failing example and test the capture groups. Do not widen a pattern on the live site until it starts matching. That can fix one URL by breaking a whole directory.

Managing redirects in bulk

For a handful of changes, an individual Exact Match Rank Math redirect for each URL is easier to review. A large migration needs a URL map listing at least the old URL, the destination and the status before anything is imported.

CSV import and export is PRO-only. The CSV workflow can create, update and delete redirect records, and new rules need at least a source and a destination column [7]. Before importing:

  • remove duplicate sources
  • confirm every destination exists
  • find sources that already redirect
  • check for many-to-one mappings that are not genuinely equivalent
  • back up current rules
  • test a representative batch first
  • crawl the complete mapping after activation

Rank Math also tracks hits, creation date and last access for each rule [2]. That is a free way to spot rules nobody has triggered in a long time. It helps when auditing an old list, though low hits alone are not a reason to delete a rule.

A sitewide or domain migration needs Google's wider process [6]. Prepare the new site and map old URLs. Use permanent server-side redirects where possible, update internal references, and monitor both properties in Search Console. The Google Search Console setup guide covers verification and early reporting.

How long to keep a redirect

Google's guidance for site moves is to keep redirects for as long as possible, generally at least one year [6]. That gives it time to transfer signals and recrawl links on other sites that still point to the old URLs. For a single changed slug there is rarely a reason to remove the rule at all. A redirect that costs nothing to keep is better than a 404 for the one reader who still has the old bookmark.

Rank Math versus a dedicated redirect system

Rank Math is a reasonable owner when it already runs on the site and the redirect set is small enough to review inside WordPress. It keeps individual rules, 404 investigation and post-level changes in one place.

A server, CDN or dedicated redirect tool fits better when:

  • redirects must run before WordPress or PHP
  • a migration involves a large, governed mapping
  • several people need approvals and change history
  • the site needs detailed logs or automated tests
  • routing is already managed centrally
  • redirects must keep working when WordPress is down

Several systems should not own overlapping rules. Document which layer is authoritative, back it up, and record why each important redirect exists. A clear, testable mapping matters more than which tool holds it.

SEO-safe redirect checklist

Before approving an important Rank Math redirect, confirm that:

  • the source is the exact old URL or a tested pattern
  • the destination is the closest useful replacement
  • 301 is used only for a permanent move
  • the destination returns 200 and is indexable when it should rank
  • the rule creates no loop or avoidable chain
  • internal links point directly to the final URL
  • canonical and sitemap references use the final URL
  • Fallback Behaviour is set to 404, not the homepage
  • caches were cleared after activation
  • the response was tested while logged out
  • important migrations are monitored in Search Console and analytics

Google states that 301 and other permanent redirects do not cause a loss in PageRank [6]. A URL move can still bring temporary ranking fluctuation while pages are recrawled and reindexed. That is a more useful expectation than a made-up transfer percentage.

The working rule is simple. Map the old URL to a relevant live page, choose the correct status, test the response, update internal references and watch the result. If no relevant replacement exists, let the missing URL stay missing.

Frequently Asked Questions

Is the Rank Math Redirections module free?

Yes. The free version creates 301, 302 and 307 redirects, returns 410 and 451 codes, supports all five match types including regex, and includes the redirection debugger. PRO adds management tools: redirect categories, scheduled activation and deactivation, parameterized URL redirects, CSV import and export, and syncing rules to .htaccess.

Which Rank Math redirect type should I use?

Use 301 when the move is permanent. Use 302 or 307 when the original URL will return. Use 410 when content is permanently gone with no suitable replacement, or 451 when access is removed for legal reasons.

Why is my Rank Math redirect not working?

Check that Advanced mode and the Redirections module are enabled, the rule is active, the source path and match type match the requested URL, and the destination differs from the source. Then clear every cache layer and look for a competing rule at the CDN, server or another plugin. The Debug Redirections setting shows administrators which rule fired.

What does "may cause infinite loops" mean in Rank Math?

Rank Math blocks a rule when the destination equals the source, or when the destination is itself already redirected back toward the source. Open Rank Math SEO > Redirections, find the recent rule that points to an already-redirected URL, and change its destination to the final live page.

Should I redirect every 404 shown by Rank Math?

No. Redirect only when a requested URL has a clear replacement. Fix broken internal links at their source, and leave random probes, typos and deleted pages without a relevant substitute as 404 or 410 responses.

How long should I keep a redirect?

Google recommends keeping redirects after a site move for as long as possible, generally at least one year, so it can transfer signals and recrawl links that still point to the old URLs. For a single changed slug there is rarely a reason to remove the rule at all.

Sources and References

  1. Google Search Central, Redirects and Google Search ↩
  2. Rank Math, How to Set Up Redirections ↩
  3. Rank Math, How to Create a Redirection ↩
  4. Rank Math, How to Monitor 404 Errors ↩
  5. Rank Math, Solving Redirection Issues ↩
  6. Google Search Central, Site Moves and Migrations ↩
  7. Rank Math, How to Create and Edit Redirects Using CSV ↩
  8. Rank Math, General Settings: Redirections ↩
  9. Rank Math, Free versus PRO ↩
  10. Rank Math, Fixing the infinite loop error ↩

Was this guide helpful?

Your answer helps Anobee improve future updates.

Bibek Thapa

Written by

Bibek Thapa

AI-Powered Digital Growth Strategist

Bibek Thapa works across AI workflows, SEO, AI search optimization, content strategy, website growth, and productivity systems at Anobee.

  • AI workflows
  • Digital growth
  • SEO
  • GEO
  • AEO
  • Content strategy
  • Website growth

Related Articles