# 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.

- **Live tool:** https://www.toolnova.org/dev-tools/redirect-generator
- **Category:** Developer Tools (https://www.toolnova.org/dev-tools)
- **Price:** Free
- **Requirements:** Runs in a modern web browser · No signup · No install

## What this tool does

- Nginx, .htaccess, Netlify & Vercel output
- 301 permanent or 302 temporary
- Bulk paste — one redirect per line
- Copy or download the config file
- Live rule count
- Runs locally in your browser

## How to use Redirect Generator

1. **Paste redirects** — Enter old and new paths, one pair per line.
2. **Pick your server** — Nginx, Apache, Netlify or Vercel.
3. **Choose 301 or 302** — Permanent or temporary redirect.
4. **Copy or download** — Grab the ready-to-use config.

## 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

## About

### 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.

## FAQ

### 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.

---

ToolNova — free, privacy-first browser tools. Most tools process data locally on your device. See https://www.toolnova.org/llms.txt for the full directory.
