ToolSnippet

Free Bulk 301/302 Redirect Rule Generator

Convert URL migration lists into Apache .htaccess, Nginx rewrite blocks, Next.js redirects(), and Cloudflare _redirects.

About This Tool

The Bulk 301/302 Redirect Rule Generator transforms old-to-new URL path pairs into ready-to-deploy web server configuration files. Perfect for website migrations, domain rebranding, and SEO URL structure updates.

How to Use This Tool

  1. Paste your old and new URL pairs (separated by space, tab, or comma).
  2. Select your target server (Apache .htaccess, Nginx, Next.js redirects, or Netlify/Cloudflare).
  3. Choose HTTP redirect status (301 Permanent or 302 Temporary).
  4. Copy the generated server configuration block.

Why Use This Tool

  • Preserve SEO link equity during site redesigns and migrations.
  • Eliminate syntax errors when writing Nginx rewrite and Apache RedirectMatch rules.
  • Generate Next.js async redirects() arrays formatted in TypeScript.
  • Instant client-side processing.

Frequently Asked Questions

When should I use a 301 vs 302 redirect?

Use 301 (Moved Permanently) when a URL is permanently changed to pass full PageRank/link equity. Use 302 (Found/Temporary) only for temporary A/B tests or maintenance.

How are query parameters handled?

Standard 301 path rules typically preserve query strings automatically in modern servers like Nginx and Cloudflare.

Related Tools