Home / Use cases / Check Redirect Chains After a Site Migration

Updated

Check Redirect Chains After a Site Migration

After a migration, old URLs must land on the right page in one 301. Chains (http → https → new path) waste crawl budget and slow users; loops and 404 endings lose traffic.

Try it now on Apify Bulk URL Status Checker: HTTP Codes, Redirects, Broken Links · $0.0005 per one url that received an http answer · failed items are free

How to do it, step by step

  1. Export the old URLs (from the previous sitemap, analytics or backlinks).
  2. Paste them into URLs.
  3. Run; each row has the full redirects chain with each hop's status, the finalUrl and its status.
  4. Fix rows where redirectCount > 1 or the final status is not 200.

The exact input used for the example below:

{
  "urls": [
    "http://python.org",
    "http://www.wikipedia.org",
    "http://apify.com",
    "http://twitter.com",
    "http://docs.python.org/3/library/urllib2.html"
  ]
}

Real result

Run LoxwijDZxiCa8TGLA on 2026-12-05: status SUCCEEDED, 5 item(s), 2.0 s of run time. Output shortened for reading (long text cut with “…”).

Note the two-hop chain (http → https → new page) on the Python docs URL, and a 520 from a server that answers automated checks with an error rather than a redirect.

[
  {
    "url": "http://python.org/",
    "status": 200,
    "verdict": "ok",
    "finalUrl": "https://www.python.org/",
    "redirects": [
      {
        "url": "http://python.org/",
        "status": 301
      }
    ],
    "redirectCount": 1,
    "responseTimeMs": 170
  },
  {
    "url": "http://www.wikipedia.org/",
    "status": 200,
    "verdict": "ok",
    "finalUrl": "https://www.wikipedia.org/",
    "redirects": [
      {
        "url": "http://www.wikipedia.org/",
        "status": 301
      }
    ],
    "redirectCount": 1,
    "responseTimeMs": 52
  },
  {
    "url": "http://apify.com/",
    "status": 200,
    "verdict": "ok",
    "finalUrl": "https://apify.com/",
    "redirects": [
      {
        "url": "http://apify.com/",
        "status": 301
      }
    ],
    "redirectCount": 1,
    "responseTimeMs": 127
  },
  {
    "url": "http://twitter.com/",
    "status": 520,
    "verdict": "server_error",
    "finalUrl": "http://twitter.com/",
    "redirects": [],
    "redirectCount": 0,
    "responseTimeMs": 77
  },
  {
    "url": "http://docs.python.org/3/library/urllib2.html",
    "status": 200,
    "verdict": "ok",
    "finalUrl": "https://docs.python.org/3/library/urllib.request.html",
    "redirects": [
      {
        "url": "http://docs.python.org/3/library/urllib2.html",
        "status": 301
      },
      {
        "url": "https://docs.python.org/3/library/urllib2.html",
        "status": 301
      }
    ],
    "redirectCount": 2,
    "responseTimeMs": 194
  }
]

Try it now with your own input

FAQ

301 or 302?

Each hop shows its status; permanent moves should be 301 or 308 so search engines transfer signals.

Does it follow JavaScript or meta refresh redirects?

It follows HTTP redirects only, which is what search engines rely on first.

How many URLs at once?

Thousands per run, checked in parallel.

Related