Home Services Industries Tools Blog Contact Français
Free SEO Tool

301 Redirect Generator

Migrating a site or fixing broken URLs? Paste your old and new addresses and get clean, copy-ready redirect rules for nginx or Apache .htaccess — preserving your SEO value.

HomeTools › Redirect Generator

Old → New URLs

Separate old and new with a space, comma, tab or →. Old URLs can be a path (/old) or full URL; new can be a path or absolute URL.

Options

Redirect Rules

Planning a site migration?

Botched redirects are the #1 cause of traffic loss after a redesign. Get a free migration & technical SEO audit before you launch.

Request my free audit →

Why 301 redirects matter for SEO

When a URL changes, a 301 (permanent) redirect sends both visitors and search engines to the new address — and passes almost all of the old page’s ranking value along with them. Skip the redirects during a migration and you lose rankings, backlinks and traffic overnight, while users hit dead 404 pages.

How to use these rules

For nginx, add the location blocks inside your server { } block and reload nginx. For Apache, paste the lines into the .htaccess file at your site root. Always test a few redirects after deploying, and redirect to the closest equivalent page — never funnel everything to the homepage.

301 or 302 — which should I use?
Use 301 for permanent changes (migrations, renamed pages) so ranking value transfers. Use 302 only for genuinely temporary moves, since it tells Google to keep indexing the original URL.
Can I redirect a whole old domain?
Yes, but map URLs one-to-one wherever possible rather than blanket-redirecting to the homepage — page-level redirects preserve far more of your SEO value. This tool builds those precise, per-URL rules.

More free SEO tools