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

Start free trial

List Rank Math Redirections

rank-math/list-redirections returns a paginated list of Rank Math redirections with their sources, target, status code, status and hit count.

Filter by status, including trashed — inspecting the trash here is the step before emptying it.

At a glance

Abilityrank-math/list-redirections
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

A redirection can have several sources pointing at one target, each with its own comparison mode. The list returns all of them, because a rule with five sources behaves very differently from five rules and the difference is invisible if you only see the first.

The hit count is the field that makes a cleanup possible. Rules with zero hits over a long period are either protecting a URL nobody visits any more or were never right in the first place, and either way they are candidates for removal.

Trashed rules are inactive but restorable, which makes the trash the safe place to put a rule you think is obsolete. Listing it with status=trashed before emptying is how you avoid discovering afterwards that one of them mattered.

This answers what rules exist. It cannot answer why does this URL redirect — a regex or contains rule need not contain the URL literally, so rank-math/find-redirection is the call for that.

Input

NameTypeRequiredWhat it is
statusstringNoactive, inactive or trashed.
pageintegerNo1-based page number.
per_pageintegerNoRows per page.

What comes back

NameTypeWhat it is
redirectionsarrayOne entry per rule: ID, sources with their comparisons, destination, status code, status and hit count.
totalintegerHow many match the filter.
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:

What redirections do we have, and which ones are never used?

It resolves to one call:

{
  "ability": "rank-math/list-redirections",
  "parameters": {
    "status": "active",
    "per_page": 100
  }
}

Worth knowing

  • One rule can have many sources. The list shows all of them.
  • Zero-hit rules are cleanup candidates.
  • Inspect the trash here before emptying it.
  • Text searching this list cannot explain why a URL redirects.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading