Skip to content

Redirect generator

Turn a list of old and new URLs into rules for your server.

Free, no signup, and it runs entirely in your browser.

Output
Paste your redirects.

About this tool

A site migration is a spreadsheet of old and new URLs, and the tedious part is turning it into the syntax your server wants. Each platform spells the same rule differently, and getting a redirect wrong at migration time is how sites lose rankings they had built over years.

  • Use 301 for anything permanent. A 302 tells search engines the old URL is coming back, so they keep it indexed and the new one never fully inherits the old page’s standing.
  • Redirect to the closest equivalent page, not to the homepage. A mass redirect to the root is treated as a soft 404 and passes nothing on.
  • Avoid chains. A redirecting to B redirecting to C loses a little at each hop and slows every visitor down — point A at C directly.
  • Keep the old rules in place for at least a year. Links from other sites do not update, and they are the reason the redirect is worth having.

Questions

Should I use a 301 or a 302?
301 for a permanent move — it passes ranking signals to the new URL. 302 only when the original really is returning, such as during a short campaign.
Do redirects lose SEO value?
A single 301 passes essentially all of it. Chains of several hops lose a little at each step and are worth flattening.
How long should I keep redirects?
At least a year, and indefinitely if the old URLs have backlinks. External links never update themselves, and they are the whole reason the redirect exists.

Related tools