Redirect Generator

Free redirect generator. Convert old→new URL pairs into Nginx, Apache .htaccess, Netlify or Vercel redirect rules with 301 or 302 codes — copy or download.

Turn a list of old→new URL pairs into ready-to-use redirect rules for Nginx, Apache .htaccess, Netlify or Vercel, with 301 or 302 status codes.

Share
Category
Developer Tools
Includes
6 features
Access
Free · No sign-up
Privacy
Runs in your browser
Redirect Generator

Loading Redirect Generator......

Please wait a moment

How to use

How to use Redirect Generator

  1. 01

    Paste redirects

    Enter old and new paths, one pair per line.

  2. 02

    Pick your server

    Nginx, Apache, Netlify or Vercel.

  3. 03

    Choose 301 or 302

    Permanent or temporary redirect.

  4. 04

    Copy or download

    Grab the ready-to-use config.

Use cases

Common use cases

  • Redirect old URLs after a site migration
  • Set up 301s when renaming pages
  • Consolidate duplicate URLs for SEO
  • Generate a Netlify _redirects file
Overview

Migrate URLs without breaking SEO

When you rename pages or move a site, old URLs need redirects so visitors and search engines land on the right place and link equity is preserved. Paste your old→new pairs, one per line, and this tool generates correct redirect rules for your stack — Nginx rewrite directives, Apache .htaccess Redirect lines, a Netlify _redirects file, or a Vercel vercel.json block.

Choose the right status code

Pick 301 for permanent moves (the default for SEO, telling search engines to transfer ranking) or 302 for temporary ones. The output updates live and shows how many rules you've created. Copy it or download the correctly-named config file. Everything runs locally, so your URL structure stays private.

Features
01
Nginx, .htaccess, Netlify & Vercel output
02
301 permanent or 302 temporary
03
Bulk paste — one redirect per line
04
Copy or download the config file
05
Live rule count
06
Runs locally in your browser
FAQ

Frequently asked questions

What's the difference between a 301 and 302 redirect?+

A 301 is permanent and tells search engines to pass ranking to the new URL — use it for moved pages. A 302 is temporary and keeps ranking on the original URL.

Which servers are supported?+

Four formats: Nginx rewrite rules, Apache .htaccess Redirect lines, a Netlify _redirects file, and a Vercel vercel.json redirects block.

How do I enter my redirects?+

Paste them one per line as 'old-path new-path', separated by spaces. The tool parses each line into a rule and shows a live count.

Is it free?+

Yes, completely free with no signup, running entirely in your browser.