Free Redirect Generator
Turn a list of old and new URLs into redirect rules for Apache, nginx, Vercel or Next.js — with loops and duplicate sources caught before you paste them into production.
Redirects
One per line: source then destination. Separate with a space, comma, tab or ->.
Use 301 when the old URL is gone for good — it passes ranking signal to the new one and browsers cache it hard. Use 302 only while the move is genuinely temporary.
Server
.htaccess
Why use the Redirect Generator
Private by design
No account needed. What you type stays in your browser unless you ask for an AI suggestion or name a URL to fetch.
Validated before you paste
Mistakes that silently break these files, such as redirect loops, one-way hreflang and unescaped URLs, are caught first.
Ready to deploy
Copy the output or download the file, ready for your server config or site root.
Frequently asked questions
301 or 302?
301 when the old URL is gone for good — it passes ranking signal to the new page and browsers cache it aggressively. 302 only while a move is genuinely temporary, because it passes far less and is easily undone.
Why did my redirect cause a loop?
Almost always because a source and its destination resolve to the same URL, or two rules point at each other. This tool refuses identical pairs and duplicate sources before they reach your config.
Do redirects lose ranking?
A single 301 to a genuinely equivalent page passes essentially all of it. What costs you is chains — A to B to C — and redirects to loosely related pages, which Google may treat as soft 404s.
Why does the nginx output use location =?
It forces an exact match. A prefix match on /old would also catch /older and /old-news, redirecting pages you never intended to touch.
Updated · Built by Niraj Kumar
More free SEO tools
All-in-one studio
Every tag in one editor
Canonical Tag Generator
Point duplicates at the original
Robots.txt Generator
Control what crawlers reach
XML Sitemap Generator
Every URL, one file
Hreflang Generator
Point each language at the right page
llms.txt Generator
A site map written for AI
SEO Checker
Audit any live URL