Redirect Chain and Regex Tester
Paste Apache .htaccess, Nginx or _redirects rules plus test URLs to find redirect chains, loops and regex capture groups, then copy clean single-hop rules.
Chains, loops and capture groups
Suggested single-hop rules
Regex tester
How to use this tool
- Choose a format or leave auto-detect, then paste your redirect rules. Comments starting with # are ignored.
- Add the URLs or paths you want to test, one per line.
- Review each hop, any capture groups, and warnings about chains, loops, or temporary status codes in a permanent move.
- Copy the suggested single-hop rules so the original path can point directly at the final URL. Use the regex tester to debug a pattern and replacement before you deploy it.
Rules stay in your browser. The tool does not request the live site, so it will not see server-only redirects that are missing from the pasted rules.
Official documentation
Frequently asked questions
A chain is two or more successive external redirects (for example /a to /b to /c). Search engines can follow them, but a single hop to the final URL is faster, cleaner for crawlers, and less likely to drop parameters or change status codes mid-way.
The tester walks each test URL through the pasted rules and records every visited path. If a path repeats, or the walk hits the hop limit, it is flagged as a loop so you can break the cycle before it reaches production.
No. It only evaluates the rules you paste, which is useful while you edit .htaccess, Nginx config or a _redirects file. After you deploy, confirm the live status codes with your host or a header check.
Back to the new technical SEO tools · All tools · Read the guides