CorefinityCorefinityDocs
Open the Control PanelControl Panel
Redirects · 3 of 5

corestack_redirects_test

Test a redirect.

Scope readNo secrets returnedCoreCluster
On this page

When to use it

Try an address against a row's redirects — the saved table, or one you have not saved yet — and see which rule matches, where it goes and the whole chain.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_redirects_test with site_id 4211, url https://example.co.uk/. (Test a redirect.) Tell me what it returned.

Inputs

hoststring or null

One of the row's domains to make the request on (rules limited to it run first); by default the primary. A full address in url names its own. Up to 253 characters.

rulesarray of objects or null

An unsaved table, in corestack_redirects_update's rule shape; absent tests the saved one. Up to 2,000 items.

Fields of each item
enabledbooleanRequired
fromstringRequired

Up to 2,000 characters.

hostsarray of strings or null

CPPB-1170: limit the rule to some of the row's own domains (corestack_redirects_get's available_hosts); null runs it on every domain. Left out on a saved rule, the rule keeps the domains it has. On its domains a limited rule runs before the every-domain rules, and never on the platform's reserved paths.

idinteger or null

An existing rule's id; leave it out (or null) for a new rule. At least 1.

keep_querybooleanRequired
notestring or null

Up to 120 characters.

statusintegerRequired
301302
tostringRequired

Up to 2,000 characters.

typestringRequired
exactprefixregex
site_idintegerRequired

At least 1.

urlstringRequired

A path such as /old-page, or a full address on the site. Up to 4,096 characters.

Example call

tools/call
{
  "name": "corestack_redirects_test",
  "arguments": {
    "site_id": 4211,
    "url": "https://example.co.uk/"
  }
}

If it is refused

ReasonWhat to do
invalid_argumentsThe arguments do not match the tool's input schema, or the Control Panel refused a field. Fix the fields named in the answer and call again.
tenant_mismatchThe object does not exist or the token may not see it. Check the id.
scope_requiredThe token lacks a scope this call needs. Open the link in the answer to add it, then call again.
pin_refusedThe grant is limited to chosen clusters, sites or environments, and this call is outside them. Open the link in the answer to widen it.
rate_limitedToo many calls. Wait for the number of seconds the answer names.
temporarily_unavailableThe Control Panel could not answer just now. Nothing was started; try again shortly.
internal_errorSomething went wrong on our side. Quote the trace id to support.

The same task elsewhere

Was this helpful?
Open in ClaudeOpen in ChatGPT