Skip to content
Crawling and indexing · free, no sign-up

Redirect Generator

Turns a list of old and new addresses into redirect rules for Apache or nginx, and catches common mistakes.

One per line: the old path, a space, then where it should go now.

Your rules

Back up your configuration first, and test a few old addresses with the Redirect Checker afterwards.

Why it matters

When pages move, redirects keep visitors and search engines from hitting dead ends and carry over the value earned by the old address. Doing many by hand invites typing errors.

How to fix it

  • List each old path and its closest new page, not just your home page.
  • Use 301 for permanent moves.
  • Back up your configuration, then test a few with the Redirect Checker.

What a good result looks like

One redirect from each old address straight to its closest new page, with no chains or loops.

Common mistakes

  • Sending everything to the home page, which Google can treat as a soft 404.
  • Chaining redirects after several site moves.
  • Pasting rules without a backup: a mistake can take a site down.

Questions about the Redirect Generator

Should I use 301 or 302?

Use 301 when the move is permanent, which is most of the time. Use 302 only for something temporary, such as a short sale page.

How long should I keep redirects?

Google suggests at least a year, and longer is fine if old links still get visits.

Why was a line left out?

Characters such as ; { } and $ have special meanings in server configuration and could break it, so those lines need writing by hand.

Check everything at once

Run our other instant checks on your site in one report.

Full SEO check-up

More crawling and indexing tools