Skip to main content

Tidy Byte Tools

redirect-check-lite

Tests License: MIT

Free tool that tests a site-move redirect map. Give it old URL, new URL pairs. It visits every old URL, follows the redirects, and tells you pass, warn or fail for each one, with a fix in plain words.

Need more than 200 pairs, or want to run it from an API or n8n? See the pay-per-use version: Redirect Map Checker.

Runs on your own computer. MIT license. Python 3.10 or newer, on Windows, Mac and Linux.

Also searched as: site migration redirect checker, 301 redirect test, redirect map validator, check redirect chain, bulk redirect checker, redirect loop finder

Example

Your map (map.csv):

old,new
/old-a,/new-a
/old-c,/new-c
/gone,/new-a

Run:

redirect-check-lite map.csv --base https://old.example.com

You get:

PASS  line 2: https://old.example.com/old-a  [301 > 200]  ok
WARN  line 3: https://old.example.com/old-c  [301 > 301 > 200]  chain
      Fix: Point the old URL straight at the final page so there is only one redirect.
FAIL  line 4: https://old.example.com/gone  [404]  not-redirected
      Fix: The old URL is gone and nothing sends visitors to the new page. Add a redirect rule.

3 checked: 1 pass, 1 warn, 1 fail. Not ready yet.

The exit code is 0 when nothing failed and 2 when something failed, so you can use it in a build check.

Install

pip install redirect-check-lite

Not on PyPI yet? Install from GitHub: pip install git+https://github.com/tidybytetools/redirect-check-lite

Use it

redirect-check-lite map.csv --base https://old.example.com   # map has paths like /old-page
redirect-check-lite map.csv                                  # map has full web addresses
redirect-check-lite map.csv --csv results.csv                # also save a CSV
redirect-check-lite map.csv --expect any                     # 301, 302 and 307 are all fine
redirect-check-lite map.csv --max-chain 2                    # allow 2 redirects in a row
redirect-check-lite map.csv --fail-on warn                   # exit 2 on warnings too
cat map.csv | redirect-check-lite - --json                   # one JSON object, for scripts and AI agents

Your map can use commas, tabs, semicolons, pipes, or an arrow like old -> new. A header row is fine.

Python:

from redirect_check_lite import check_pairs
r = check_pairs("https://old.com/a,https://new.com/a")
r["summary"]["readyToLaunch"], r["rows"][0]["verdict"]

What the verdicts mean

Verdict What it means
ok One permanent redirect (301 or 308) straight to the right page, and that page loads.
chain It gets there, but through 2 or more redirects.
temporary-redirect It gets there, but a step is 302, 303 or 307 when you wanted a permanent one.
wrong-status Right page, but not the redirect code you asked for.
wrong-target It ends on a different page than your map says.
no-redirect The old URL still loads by itself.
not-redirected The old URL is gone (404 or 410) and nothing redirects.
target-broken It goes to the right place, but that page is broken.
loop The redirects go in a circle.
too-many-hops More than 10 redirects in a row.
error No answer (site not found, timeout, bad certificate).
busy The site kept answering 429 or 503 (rate limited), so the pair could not be judged. It is a warning, not a failure: run it again later. The tool waits as long as the site's Retry-After asks (up to 8 seconds) before trying again.

It also warns about the map itself: the same old URL listed twice with different targets, old equal to new, and targets that are also old URLs.

For AI agents (MCP)

Start the MCP server with uvx redirect-check-lite mcp. Two tools:

  • check_redirects: a whole map (a file path or text) in, one row per pair out.
  • check_one_redirect: one old URL and the page it should end on.

Both only send web requests to the URLs you give them. They change nothing on your computer.

Example config for Claude Desktop or Cursor:

{"mcpServers": {"redirect-check-lite": {"command": "uvx", "args": ["redirect-check-lite", "mcp"]}}}

What the free tier does and does not do

Free (this tool) Pay per use (Apify)
Pairs per run first 200 up to 100,000
Same verdicts and fixes yes yes
Checks the map itself yes yes
Speed limit per site fixed at 5 a second you choose
Saves only the pairs with a problem no yes
Run from an API, n8n, Make or a schedule no yes
Map from a link or a spreadsheet export no yes

FAQ

Why is my 302 a warning? A 302 means "temporary". Search engines may keep the old URL. Use a 301 or 308 for pages that moved for good.

What if the server refuses HEAD requests? It asks again with GET before judging.

Does it follow redirects to other sites? Yes, up to 10 in a row, so you can test moves to a new domain.

Will it overload my server? No. It sends at most 5 requests a second to one site, and 4 at a time. Only test sites you own or may test.

Does it send my map anywhere? No. It only talks to the URLs in your map.

Metadata

Release files for redirect-check-lite 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for redirect-check-lite 0.1.2
File Size Uploaded Provenance Actions
redirect_check_lite-0.1.2.tar.gz 21.3 kB With provenance Details for redirect_check_lite-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for redirect-check-lite 0.1.2
File Interpreter ABI Platform Actions
redirect_check_lite-0.1.2-py3-none-any.whl Python 3 none any Details for redirect_check_lite-0.1.2-py3-none-any.whl

Total release size: 38.0 kB

Release files / redirect_check_lite-0.1.2.tar.gz

Download URL redirect_check_lite-0.1.2.tar.gz
Size 21.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9feff20cee847eeadf6197ff982b1db11520bfc679cc4a334ef62ecc660fa62c
BLAKE2b-256 checksum
How to use checksums
546e9f36502dca0afbdf0a3300f92a4cfe30e04cc82e20e51924bb67dac4f077
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

Release files / redirect_check_lite-0.1.2-py3-none-any.whl

Download URL redirect_check_lite-0.1.2-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb19913363fde7d963c607fce59a7bd40dfbb22f69bd4447667279f809524005
BLAKE2b-256 checksum
How to use checksums
13c565c6bde42b4e912021158cffc530e0fc0de460f5fb4b4ed86db4f42528bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

Security for redirect-check-lite 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for redirect_check_lite-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page