# Site Migration URL Parity Checker and Redirect Builder (`bodacious_mistral/migration-url-parity`) Actor

Checks that every old URL still answers on the new site after a move to a new platform or domain, finds lost pages and writes the missing redirects in Cloudflare, Netlify, nginx or Apache format.

- **URL**: https://apify.com/bodacious_mistral/migration-url-parity.md
- **Developed by:** [Red Center Studio](https://apify.com/bodacious_mistral) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 urls checked

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Site Migration URL Parity Checker and Redirect Builder

Checks that every old URL still answers on the new site after a move to a new platform or domain, finds lost pages and writes the missing redirects in Cloudflare, Netlify, nginx or Apache format.

### What it does

When you move a website to a new platform or a new domain, every old address should still lead somewhere on the new site. This Actor proves it. It collects the old addresses, requests each one on the new site, follows redirects hop by hop and returns one row per old address. For every address that is lost, it suggests the best matching page on the new site and writes the redirect rule in the format you choose.

Where the old addresses come from:

- Your own list in `extraUrls`, as paths or full addresses.
- The old site robots.txt Sitemap lines and /sitemap.xml, including sitemap indexes and gzip files.
- The Wayback Machine, with one request for archived HTML pages of the old host. If it does not answer, the run carries on and says so in the SUMMARY.

Fragments and tracking parameters (utm\_\*, gclid, fbclid) are removed, other query strings are kept, duplicates are merged, only the old host is kept and asset files such as images, scripts and fonts are skipped.

How each address is judged:

- ok: the same path answers 200 on the new site.
- redirected-ok: a chain of redirects ends on a working page. 301 and 308 are permanent. A 302, 303 or 307 anywhere in the chain is still redirected-ok but adds the warning temporary-redirect, and a chain of more than two redirects adds long-chain.
- redirect-to-home: the old address redirects to the home page, which loses the page for visitors and search engines.
- missing: the new site answers 404 or 410.
- soft-404: the page answers 200 but its title, main heading or short body reads like a not-found page. This check looks for English wording only.
- error: the new site answered with a server error, an unexpected status (for example 403) or a redirect loop.

For missing, soft-404 and redirect-to-home addresses it compares the old page name with the page names in the new site sitemap and suggests the closest one, with a confidence of high, medium or low. Below a minimum match it makes no suggestion rather than guess.

### What is charged

Finding what fails on the new site is the job, so every old URL the new site answers is a charged result row, whatever the answer: ok, redirected-ok, redirect-to-home, missing, soft-404 and error. That includes server-error, 403 and redirect-loop rows (`status` is `ok` and `statusClass` is `error`).

These are free error rows (`status` is `error`), because nothing could be learned about the address: the new site did not answer, the address is refused for safety, the new site rate limited the check (429), or it answered with a Cloudflare bot check (recognised by its `cf-mitigated` header). Bot walls from other providers are not recognised and are reported as the status they send.

### Redirect formats

Choose one with `redirectFormat`. Each row carries its rule in `redirectRule`, and all rules are collected in the REDIRECTS record, ready to paste.

- `cloudflare-bulk-csv` (default): one line per redirect for a Cloudflare Bulk Redirects list upload, with no header row: `old.example.com/old-page,https://new.example.com/new-page,301,FALSE,FALSE,FALSE,FALSE`.
- `cloudflare-redirects-file`: lines for a `_redirects` file, for example `/old-page /new-page 301`.
- `netlify`: `[[redirects]]` blocks for netlify.toml.
- `nginx`: `location = /old-page { return 301 ...; }` lines for the server block.
- `apache`: `RedirectMatch 301` lines, with `RewriteCond` and `RewriteRule` for addresses that have a query string.

Cloudflare bulk redirects, `_redirects` and netlify.toml rules cannot match a query string, so an address with a query string gets a suggestion but no rule in those formats, and the next step says so. Use the nginx or apache format for those, or add the rule by hand. Check every suggested match by eye before you publish it.

### Extra outputs

Besides the dataset, each run stores two records in the default key-value store. Open the run, choose Storage, then Key-value store, and download them:

- `SUMMARY`: JSON with counts per result class, the parity percent (ok plus redirected-ok, divided by the addresses checked), the sources used, the number of addresses that came back as free error rows, and the Wayback note.
- `REDIRECTS`: plain text with every suggested rule in the chosen format.

Through the API they are at `/v2/key-value-stores/<store id>/records/SUMMARY` and `/records/REDIRECTS` on the run's default store. The `OUTPUT` record holds the run totals and the charged events.

### Who it is for

Anyone moving a site to a new platform or domain, agencies running migrations for clients, SEO teams protecting rankings during a relaunch, and AI agents that need a checked list of redirects. It works well after moving a Bubble® app to code you own with App Mover, and for any other move too.

### Input

Run it from the Console, the API, or as an agent tool. Minimal input:

```json
{
  "oldSite": "https://redcenterstudio.com",
  "newSite": "https://redcenterstudio.com"
}
```

Every field is described in the input form. Free to run: you pay only for the URL checked you get back.

### Output

One row per input item. Rows with `status: "ok"` are results. Rows with `status: "error"` explain what went wrong and are never charged. A run summary is stored in the `OUTPUT` record.

Real output from a live run:

```json
{
  "status": "ok",
  "inputRef": "/app-mover-pricing",
  "auditedAt": "2026-12-03T17:37:33.471Z",
  "oldUrl": "https://redcenterstudio.com/app-mover-pricing",
  "source": "input",
  "newUrl": "https://redcenterstudio.com/app-mover-pricing",
  "statusClass": "missing",
  "httpStatus": 404,
  "warnings": [],
  "chain": [
    {
      "url": "https://redcenterstudio.com/app-mover-pricing",
      "status": 404
    }
  ],
  "finalUrl": "https://redcenterstudio.com/app-mover-pricing",
  "suggestedTarget": "https://redcenterstudio.com/app-mover/",
  "suggestionConfidence": "medium",
  "redirectRule": "redcenterstudio.com/app-mover-pricing,https://redcenterstudio.com/app-mover/,301,FALSE,FALSE,FALSE,FALSE",
  "nextStep": "Add the redirect rule to send this address to https://redcenterstudio.com/app-mover/ (medium confidence). Look at the match before you publish it."
}
```

### Pricing

Pay per event. No monthly fee. The platform start event is charged automatically by Apify.

| Event | Charged when | Price |
| --- | --- | --- |
| URL checked (`url-checked`) | Charged once for each old URL that returns a result row. Error rows, where the new site could not be reached for that URL, are free. | $0.0005 per URL checked ($0.50 per 1,000) |

Set a maximum cost per run on the run options. The Actor stops cleanly when the limit is reached and never charges beyond it.

### Use with Apify MCP

AI assistants can call this Actor as a tool through the Apify MCP server:

`https://mcp.apify.com?tools=bodacious_mistral/migration-url-parity`

### Limits

- Wayback Machine coverage varies from site to site. Older or smaller sites may have few archived pages, so also use the sitemap and your own list.
- Soft-404 detection reads English wording only. A not-found page in another language that answers 200 is reported as ok or redirected-ok.
- Pages are judged by the HTML the server sends. A page that shows its content only after JavaScript runs is judged on what the server returns.
- Up to 5,000 old addresses per run, 500 by default, with up to 10 checks at the same time.
- Suggestions come from page names, not page content, so they are a starting point to check.
- It only reads. It never changes any site, DNS record or redirect setting.
- Private and internal addresses are refused for safety. An address the new site cannot be reached for comes back as a free error row.

### Next step

[Move your Bubble app with App Mover](https://redcenterstudio.com/app-mover/). Built by Red Center Studio. Related: [App Mover](https://redcenterstudio.com/app-mover/).

# Actor input Schema

## `oldSite` (type: `string`):

The site you are moving away from: a domain or an origin such as https://old.example.com. Its sitemap, the Wayback Machine and your own list give the old addresses to check.

## `newSite` (type: `string`):

The site that replaces it: a domain or an origin. It can be the same as the old site when the move is on one domain and the new site is already live.

## `extraUrls` (type: `array`):

Old paths or full addresses to check as well, one per line, for example /old-page. Addresses on other sites are skipped.

## `useSitemap` (type: `boolean`):

Read the old site robots.txt and sitemap.xml (sitemap indexes and gzip files included) to find old addresses.

## `useWayback` (type: `boolean`):

Ask the Wayback Machine for archived page addresses of the old site. One polite request. If it does not answer, the run carries on and says so.

## `maxUrls` (type: `integer`):

The most old addresses to check in one run. Your own list comes first, then the sitemap, then the Wayback Machine.

## `concurrency` (type: `integer`):

How many addresses to check at the same time. Lower it if the new site is slow.

## `redirectFormat` (type: `string`):

Format of the redirect rules written for each fixable address and into the REDIRECTS record: Cloudflare bulk redirects CSV, a \_redirects file, netlify.toml, nginx or apache.

## Actor input object example

```json
{
  "oldSite": "https://redcenterstudio.com",
  "newSite": "https://redcenterstudio.com",
  "extraUrls": [],
  "useSitemap": true,
  "useWayback": true,
  "maxUrls": 500,
  "concurrency": 5,
  "redirectFormat": "cloudflare-bulk-csv"
}
```

# Actor output Schema

## `results` (type: `string`):

One row per input item.

## `summary` (type: `string`):

Totals, charged events, stop reason and the next step. Stored as the OUTPUT record.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "oldSite": "https://redcenterstudio.com",
    "newSite": "https://redcenterstudio.com"
};

// Run the Actor and wait for it to finish
const run = await client.actor("bodacious_mistral/migration-url-parity").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "oldSite": "https://redcenterstudio.com",
    "newSite": "https://redcenterstudio.com",
}

# Run the Actor and wait for it to finish
run = client.actor("bodacious_mistral/migration-url-parity").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "oldSite": "https://redcenterstudio.com",
  "newSite": "https://redcenterstudio.com"
}' |
apify call bodacious_mistral/migration-url-parity --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bodacious_mistral/migration-url-parity"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/77xhcrM43oMHAKpx2/builds/eOHtD7MenzdH0qAtA/openapi.json
