# Site Migration & Relaunch Checker – Lost URLs & Redirect Map (`rowharbor1988/site-migration-checker`) Actor

Moved or relaunched a website? Finds the old URLs itself (sitemap + Wayback Machine), follows every redirect and flags lost pages, 302s, chains and homepage redirects. Builds a CSV redirect map with verified new targets.

- **URL**: https://apify.com/rowharbor1988/site-migration-checker.md
- **Developed by:** [rowharbor1988](https://apify.com/rowharbor1988) (community)
- **Categories:** SEO tools, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 old url checkeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-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 & Relaunch Checker – Lost URLs & Redirect Map

Moving to a new domain, a new shop system or a redesigned site is the moment most websites lose rankings: old URLs return 404, redirect to the homepage or use temporary 302 redirects. This Actor finds those problems **without you having to supply a list of old URLs**.

### How it works

1. **Collects the old URLs itself** – from the old sitemap (via robots.txt), from the **Wayback Machine** (every archived HTML page of the old domain) and from your own list (e.g. a Search Console export). http/https and www/non-www variants are merged, images and scripts are skipped.
2. **Checks every old URL live** and follows each redirect hop by hop.
3. **Classifies** each URL:

| Verdict | Result | Meaning |
|---|---|---|
| fine | Direct answer | Page answers with 200 |
| fine | Permanent redirect | One clean 301/308 redirect to a working page |
| check | Temporary redirect | 302/303/307 – rankings may not move |
| check | Redirect chain | More than one hop |
| check | Redirect to homepage | Usually treated as a lost page (soft 404) |
| lost | Gone | 404 / 410 |
| lost | Redirect to error | Redirect ends on 4xx/5xx or an unreachable address |
| lost | Server error / not accessible / redirect loop | 5xx, 401/403, loops |

4. **Verified fix suggestions** – if you enter the new website, the Actor checks for every problem URL whether **the same path exists on the new site**. A suggestion is only given when that page really answers (no guesses, no AI).

### Output

- **Dataset** – one row per old URL: verdict, result, final status, where it ends, the full redirect chain, verified new URL, where the URL was found.
- **REDIRECT_MAP (CSV)** – every URL that needs work, with the verified new target where one exists. Fill in the rest and hand it to your developer.
- **REPORT (HTML)** – a shareable summary for clients: fine / needs attention / lost, by category, and the list of URLs to fix.

### Before or after the move

- **After the move:** enter old and new website – see which old URLs are lost or badly redirected.
- **Before the move:** enter the old (still live) site and the new staging/production site with *Check same path on the new site = All* – see which pages the new site is still missing.

### Pricing

Pay per checked old URL. If the old domain is not reachable at all, the run stops early and nothing is charged.

### Good to know

- Only public page addresses and status codes are processed – no personal data, no page content is stored.
- The Wayback Machine sometimes answers slowly; the Actor retries and continues without archive URLs if it stays unavailable (noted in SUMMARY).
- Response bodies are not downloaded – checks are fast and light on the server.

### Support

Missing a check or found a wrong classification? Open an issue on the Issues tab – I answer quickly.

# Actor input Schema

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

The website as it was before the move, e.g. https://old-example.com. Old URLs are collected from its sitemap and the Wayback Machine, then checked live.

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

Where the site lives now, e.g. https://new-example.com. If set, the Actor checks whether redirects end there – and for every problem URL whether the same path exists on the new site (a verified fix suggestion).

## `oldUrls` (type: `array`):

Old URLs or paths (e.g. /about-us) you want checked in any case – from Google Search Console, analytics or an old crawl. They are checked first.

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

Read robots.txt and the sitemap of the old site. Useful before the move, or if the old sitemap is still online.

## `useArchive` (type: `boolean`):

Collect HTML pages of the old domain archived by the Internet Archive – finds URLs nobody remembers anymore. URLs with ?parameters are skipped unless enabled below.

## `archiveFrom` (type: `string`):

Optional. Ignore very old archive URLs, e.g. 2021 or 2021-06-01.

## `keepQueryUrls` (type: `boolean`):

Also check sitemap/archive URLs with ?parameters (e.g. ?p=123 on old WordPress sites). Your own list always keeps them.

## `checkNewSite` (type: `string`):

Auto: only for problem URLs and URLs that don't end on the new site. All: for every URL (full pre-migration check). Off: never.

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

Upper limit of old URLs to check. You pay per checked URL.

## `maxConcurrency` (type: `integer`):

How many URLs are checked at the same time. Lower it for small servers.

## Actor input object example

```json
{
  "oldSite": "https://sdk.apify.com",
  "newSite": "https://docs.apify.com",
  "oldUrls": [],
  "useSitemap": true,
  "useArchive": true,
  "keepQueryUrls": false,
  "checkNewSite": "auto",
  "maxUrls": 20,
  "maxConcurrency": 5
}
```

# Actor output Schema

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

No description

## `report` (type: `string`):

No description

## `redirectMap` (type: `string`):

No description

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

No description

# 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://sdk.apify.com",
    "newSite": "https://docs.apify.com",
    "maxUrls": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("rowharbor1988/site-migration-checker").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://sdk.apify.com",
    "newSite": "https://docs.apify.com",
    "maxUrls": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("rowharbor1988/site-migration-checker").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://sdk.apify.com",
  "newSite": "https://docs.apify.com",
  "maxUrls": 20
}' |
apify call rowharbor1988/site-migration-checker --silent --output-dataset

```

## MCP server setup

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

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/5abKP5hSCoc8aZFT9/builds/SVtb8SXv8eIY42zGU/openapi.json
