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
| Ability | rank-math/change-redirection-status |
| Toolset | Rank Math — toolset/rank-math |
| Group | Rank Math › Redirections & 404s |
| Requires | Rank Math SEO, active on the site |
| Capability | manage_options |
| Safety | Writes data |
| Repeatable | Idempotent — running it twice leaves the same result |
| Ships in | AcrossAI 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
| Name | Type | Required | What it is |
|---|---|---|---|
ids | array | Yes | The redirection IDs. |
action | string | Yes | activate, deactivate, trash or restore. |
What comes back
| Name | Type | What it is |
|---|---|---|
changed | array | The IDs that changed. |
action | string | The action applied. |
success | boolean | Whether the call completed. |
message | string | A one-line summary of what happened, suitable for showing a human. |
error_code | string | Present 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
- Empty Rank Math Redirection Trash — the second half
- List Rank Math Redirections — inspect the trash
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category