Free Technical tool

Free Redirect Rule Generator

A redirect generator turns a list of old and new URLs into ready-to-use redirect rules for your server. SEO Portals creates 301, 302 or 308 redirects in the right format for Apache .htaccess, Nginx, Netlify, Vercel or Cloudflare Bulk Redirects, so moved pages keep their visitors and rankings.

Free · No sign-up, unlimited use · Updated · By the SEO Portals team

When do you need 301 redirects?

Whenever a page's URL changes: after a redesign, a site migration, a change of domain, merging pages or deleting content that has a natural replacement. A 301 permanent redirect sends users and search engines to the new URL and passes ranking signals to it, so you don't lose traffic from old links and bookmarks.

How to use the Redirect Rule Generator

  1. List each redirect on its own line: old path, then new URL.
  2. Choose your server or hosting platform.
  3. Choose the redirect type (301 for permanent moves).
  4. Copy the rules into your server config, then test them.

Why it matters for SEO

  • Keeps rankings and backlinks when URLs change.
  • Prevents visitors landing on 404 pages.
  • Writing server rules by hand is error-prone.
  • Supports the five most common hosting setups.

Key facts

  • Outputs Apache, Nginx, Netlify, Vercel and Cloudflare formats.
  • 301 and 308 are permanent; 302 is temporary.
  • Map each old URL to its closest equivalent, not the homepage.
  • Runs entirely in your browser.

Redirect Rule Generator FAQ

Should I redirect deleted pages to the homepage?

No. Google treats mass redirects to the homepage as soft 404s. Redirect to the most relevant page, or return 404/410 if there's no equivalent.

How long should I keep redirects?

Ideally permanently, and at least a year, so search engines and old links have time to update.

301 or 308?

Both are permanent. 308 also keeps the request method (useful for forms and APIs). For normal pages, 301 is standard.

How do I test redirects?

Use our Redirect Checker for single URLs or the Bulk HTTP Status Checker for up to 50 at once.

Check every page, not just one

Run a full-site audit free and get every issue ranked by impact.

Audit my whole site free