Tools/301 Redirect Generator
Free tool

301 Redirect Generator

Build your redirect map before a redesign — in .htaccess, Nginx, or Netlify format, whichever your host actually needs.

This tool turns a list of old-URL-to-new-URL pairs into ready-to-paste 301 redirect rules, in .htaccess, Nginx, or Netlify _redirects format — whichever your host actually reads. Add each old path and the new path it should now point to, pick the format, and copy the output straight into your server config or redirects file.

It's for anyone about to change URL structure: a redesign that renames service page paths, a site migration to a new platform, or a simple restructuring of how services or locations are organized in the URL. Every one of those changes means old paths stop existing, and a redirect map is what stands between that change and a pile of broken backlinks and 404s where ranking pages used to be.

Build the full list before you launch anything, not after — once the old URLs are gone and traffic starts hitting 404s, you're recovering lost ground instead of preserving what you already had.

Format

Redirect rules

Generated rules

RewriteEngine On
Redirect 301 /old-page /new-page
Redirect 301 /services/old-name /services/new-name

How to use this tool

  1. Pick the format that matches your host: .htaccess for Apache/shared hosting, Nginx for a self-managed Nginx server, or Netlify for a site deployed on Netlify.
  2. For each URL that's changing, enter the old path in the "from" field and its new destination in the "to" field.
  3. Click "Add rule" to add another row for every additional URL that needs a redirect.
  4. Remove any placeholder rows you don't need with the trash icon.
  5. Copy the generated output once every row is filled in.
  6. Paste it into the right file for your host (see the FAQ below for exactly where each format goes), then test the old URLs after deploying to confirm they 301 to the new page instead of 404ing.

Building the list before you migrate

The hardest part of a redirect map usually isn't generating the rules — it's compiling a complete list of old URLs in the first place. Before a redesign or migration, pull the full URL list from your current sitemap or a site crawl, cross-check it against your top-performing pages in analytics, and check Google Search Console for which old URLs currently have backlinks or search impressions. Those are the ones a missed redirect will actually cost you.

Frequently asked questions

Related guides

Want this handled for you instead?

We build the SEO foundation and handle the ongoing work — no long-term contract, no guaranteed-rankings sales pitch.