30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

Find Rank Math Redirection

rank-math/find-redirection finds which redirections match a given URL or path by evaluating Rank Math’s own source rules: exact, contains, start, end and regex.

This is how you explain why a URL redirects. A text search over the redirection list cannot.

At a glance

Abilityrank-math/find-redirection
ToolsetRank Math — toolset/rank-math
GroupRank Math › Redirections & 404s
RequiresRank Math SEO, active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

Four of the five comparison modes match URLs that do not contain the rule’s text in any searchable way. A contains rule for /old catches /blog/old-pricing; a regex rule may contain no literal path at all.

So grepping the list for the URL you are investigating finds nothing, and the conclusion “there is no rule for this” is wrong.

This evaluates the rules the way Rank Math does at request time, and returns every rule that matches — which can be more than one. Order matters when several match, and seeing all of them is how you find the rule that is shadowing the one you meant to use.

It is also the check before creating a rule. Two rules matching the same URL is a common and confusing state, and it is easier to avoid than to unpick.

Input

NameTypeRequiredWhat it is
urlstringYesThe URL or path to test.

What comes back

NameTypeWhat it is
matchesarrayEvery rule that matches, with its source and comparison.
countintegerHow many matched.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

Why does /old-pricing redirect to the homepage?

It resolves to one call:

{
  "ability": "rank-math/find-redirection",
  "parameters": {
    "url": "/old-pricing"
  }
}

Worth knowing

  • Evaluates the rules rather than searching their text.
  • More than one rule can match. The extras are usually the problem.
  • Run it before creating a rule, not only when diagnosing one.
  • Read-only.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading