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

Start free trial

Change Rank Math Redirection Status

rank-math/change-redirection-status activates, deactivates, trashes or restores redirections in bulk.

Every transition is reversible and nothing is deleted, which is why there is no confirmation gate.

At a glance

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

The reversible option

This is what to reach for when somebody says “get rid of these redirects”. Trashing takes them out of service, keeps the rules and their hit history, and restoring is one call.

Permanent deletion exists — rank-math/delete-redirections — and it is occasionally right. But redirections are precisely the kind of thing whose importance is discovered after removal, when a URL somebody still links to starts returning 404.

Deactivating and trashing differ in intent rather than effect: both stop the rule working. Deactivated reads as “paused”; trashed reads as “we think this is finished”. The trash is also what rank-math/delete-trashed-redirections empties, so putting something there is the first half of a two-step deletion.

Bulk, because redirection cleanups are never about one rule.

Idempotent in every direction.

Input

NameTypeRequiredWhat it is
idsarrayYesThe redirection IDs.
actionstringYesactivate, deactivate, trash or restore.

What comes back

NameTypeWhat it is
changedarrayThe IDs that changed.
actionstringThe action applied.
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:

Trash these old redirects but keep them in case.

It resolves to one call:

{
  "ability": "rank-math/change-redirection-status",
  "parameters": {
    "ids": [44, 45, 46],
    "action": "trash"
  }
}

Worth knowing

  • Nothing is deleted. Every transition reverses.
  • Prefer this to deletion when cleaning up.
  • Trashing is the first half of a two-step permanent removal.
  • Idempotent.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading