Legion Labs logoLegion Labs

$ legion actor check-redirect-chains-migration

Check redirect chains after a site migration

After a domain or HTTPS move you want to see whether old URLs still land on the new ones, and how many hops they take to get there.

Run this example on Apify

Open the url-status-checker actor in the Apify Store

Price: $0.10 per 1,000 checked URLs. A request that failed or was blocked is not charged. Actor start is $0.00005.

Input for this example

{
  "urls": [
    "https://wikipedia.org",
    "https://python.org",
    "http://github.com",
    "https://apify.com/store"
  ],
  "maxRedirects": 10
}

Sample output

originalUrlstatusCodefinalUrlredirectCount
https://wikipedia.org200https://www.wikipedia.org/1
https://python.org200https://www.python.org/1
http://github.com200https://github.com/1

Sample from a real run of this example. Personal names and email addresses on this page are redacted.

What this example does not do

The actor does not recrawl the whole old site for you; you bring the URL list. It does not execute JavaScript.

Related examples

Bulk check HTTP status codes of URLs

All Apify actors · All products