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.

100% free · No sign-up · No watermarks

Redirects

One per line: source then destination. Separate with a space, comma, tab or ->.

0 rules

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

Add some redirects to generate the config.

Private by design

Tags are built in your browser. Nothing is uploaded unless you ask for an AI suggestion or a URL audit.

See it before you ship

Live Google, Facebook and X previews render exactly what your link will look like.

Scored as you type

Real-time character guidance so titles and descriptions land inside the ranges that survive truncation.

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.