# Redirect Rules Generator

> Old to new URL pairs as .htaccess, Nginx, Vercel, Netlify, Cloudflare and Next.js rules. Runs entirely in your browser, so nothing is uploaded.

Source: https://toffeekit.com/tools/redirect-generator

**Category:** [SEO](https://toffeekit.com/category/seo) · **Price:** Free · **Runs:** in your browser, nothing is uploaded

Open the tool: https://toffeekit.com/tools/redirect-generator

**Also useful for:** 301 redirect, htaccess redirect, nginx redirect, redirect generator, vercel redirects, netlify _redirects, next.js redirects, bulk redirects, url migration

## How it works

1. Paste old and new URLs into Old → new URLs, one pair per line or straight from a CSV.
2. Choose a Default status code such as 301 Permanent, and add a third column to override a row.
3. Pick your platform tab: Apache, Nginx, Vercel, Netlify, Cloudflare or Next.js.
4. Copy or save the rules and fix any loop, chain or duplicate warnings shown below them.

## FAQ

### What is the difference between a 301 and a 302 redirect?

A 301 says the page moved permanently, so search engines move its rankings to the new URL. A 302 says the move is temporary and the old URL should stay indexed.

### When should I use 307 or 308?

They are the modern versions of 302 and 301 that keep the request method, which matters for forms and APIs. Next.js and Vercel use 308 and 307 by default.

### How do I add a 301 redirect in .htaccess?

Turn on RewriteEngine and add a RewriteRule with [R=301,L] for each old path. Paste the Apache output at the top of the .htaccess file in your site root.

### What is a redirect chain?

When one redirect leads to another, such as A to B to C. Each hop slows visitors and can lose link value, so the tool flags chains and suggests pointing A straight at C.

### Do redirects keep query strings?

Yes, by default the original query string is passed to the new URL on Apache, Nginx, Vercel, Netlify and Next.js. Rules that match a specific query drop it unless the new URL has its own.

### Is Redirect Rules Generator free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.

## Privacy

Redirect Rules Generator runs entirely in your browser. Your files and text are processed on your device and are never uploaded.

## Related tools

- [Meta Tag Generator](https://toffeekit.com/tools/meta-tag-generator) — Title, description, Open Graph and Twitter tags with live length checks.
- [SERP Snippet Preview](https://toffeekit.com/tools/serp-snippet-preview) — See your page in Google results, cut off by real pixel width.
- [Open Graph Preview](https://toffeekit.com/tools/open-graph-preview) — Preview link cards on X, Facebook, LinkedIn, Slack, Discord, WhatsApp and more.
- [Schema Markup Generator](https://toffeekit.com/tools/schema-markup-generator) — Build JSON-LD for FAQ, Product, Article, LocalBusiness, Event and more.
- [Robots.txt Generator & Tester](https://toffeekit.com/tools/robots-txt-generator) — Build robots.txt rules, block AI crawlers and test any URL against them.
- [XML Sitemap Generator](https://toffeekit.com/tools/xml-sitemap-generator) — Turn a list of URLs or paths into a valid sitemap.xml, split at 50,000.

