Free tool
Redirect rule generator
Paste old and new URLs and get ready-to-use redirect rules for Netlify, Apache, nginx or Cloudflare, with chain, loop and duplicate checks.
Your input never leaves your browser.
Your redirects
Separate with a comma, space or tab. A third value of 301, 302, 307 or 308 sets the type for that line.
Output
How to use it
- Write one redirect per line as old, new. For example: /old-page/, /new-page/. Full URLs are accepted too.
- Choose the redirect type and your server format. Leave "flatten chains" on to point every rule straight at its final destination.
- Copy the rules into your server config or your Netlify _redirects file, deploy, then test a few URLs.
Limits. The tool checks the rules you paste against each other only. It cannot see existing server rules, and it does not follow live URLs. Always test after deploying.
Questions
Which status code should I use?
301 (or 308) for permanent moves, which is what most site migrations need. Use 302 (or 307) only when the move is temporary.
What is a redirect chain?
A to B to C. It slows pages down and wastes crawl effort. Flattening rewrites it as A to C and B to C.
Where does the Netlify file go?
A plain text file called _redirects in your published folder, for Astro that is the public/ folder.
Will redirects protect my rankings in a migration?
They are essential for passing signals to new URLs, but results depend on content, links and many other factors. No tool can promise a ranking outcome.