Bulk Redirect Generator (.htaccess & Nginx)

Paste old and new URLs and get 301 rules for Apache, Nginx and a CSV for WordPress, with chain and loop checks.

By Pranav Solanki15+ years in SEO & performance marketingUpdated 24 November 2026

Moving a site or cleaning up URLs? Paste your list of old and new URLs and this bulk 301 redirect generator writes the rules for Apache .htaccess, Nginx or a CSV for WordPress redirect plugins. It also catches redirect chains, loops and duplicates before they cost you rankings.

301, 302 or 410?

Code Use when
301 The page has moved permanently. Passes ranking signals to the new URL. Use this for migrations.
302 A short-term move, like a seasonal page or A/B test.
410 The page is gone for good with no replacement. Tells Google to drop it faster than a 404.

Redirect Mapping Checklist for a Site Migration

  1. Export every URL with traffic or links (Search Console, GA4, a crawler, your backlink tool).
  2. Map each one to the most relevant new page, not the home page.
  3. Generate the rules here and fix every chain and loop it flags.
  4. Test a sample with the 301 redirect checker after launch.
  5. Keep redirects in place for at least a year; ideally forever.

Frequently Asked Questions

Where do I put the rules in .htaccess?

Near the top of the file, above the WordPress block (# BEGIN WordPress). Back up the file first: one wrong character can take the site down.

My site is on Nginx. Where do these go?

Inside the server block of your site’s config, then test with nginx -t and reload. On managed hosting, send the rules to support.

Should I use a plugin instead?

For WordPress, a plugin like Redirection or Rank Math is easier to manage. Use the CSV output to import in one go.

Do redirects slow my site?

A single redirect adds a small delay. Chains of several hops add more, which is why the tool flags them.

Related Free Tools

Built by Pranav Solanki, 15+ years in SEO and performance marketing. Everything runs in your browser: nothing you type is sent or stored.