CorefinityCorefinityDocs
Open the Control PanelControl Panel
Migration aids · 2 of 6

corestack_site_rewrite_urls

Point a copy at its platform hostname.

Scope writeAlso destructive to reveal secretsAsks you to confirmRuns as a taskNo secrets returned
On this page

When to use it

Point a copied site at this row's platform hostname so it can be tested before DNS moves: every address of the given source hosts in its database (WordPress: content, home and siteurl; Magento 2: the base URLs at every scope, including those app/etc/env.php locks; Laravel: APP_URL) is rewritten to https://<platform hostname>, and the originals are saved so corestack_site_rewrite_urls_restore can put them back. On a live production row this points the live site at the platform hostname. Not available for Shopware yet: use the pending-DNS attach.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_site_rewrite_urls with site_id 4211, from_hosts ["example.co.uk"]. (Point a copy at its platform hostname.) Tell me what it returned.

Inputs

confirm_domainstringConfirmation

On the production row only: the site's domain, typed exactly. Up to 253 characters.

from_hostsarray of stringsRequired

The source's own hosts, canonical first, e.g. ["www.example.com", "example.com"]. Up to 10 items.

site_idintegerRequired

At least 1.

Your assistant fills in a confirmation only after you agree.

Example call

tools/call
{
  "name": "corestack_site_rewrite_urls",
  "arguments": {
    "site_id": 4211,
    "from_hosts": [
      "example.co.uk"
    ]
  }
}

If it is refused

ReasonWhat to do
managed_elsewhereAnother control panel manages this site, so use that control panel for it. This is refused before anything else about the site, as in the Control Panel and the API. Nothing was done.
not_availableThe row's platform keeps its addresses where its own code chooses (a PHP site); nothing was started. Ask the person to change them in their code or its environment.
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