# Free 301 Redirect Generator

> Free 301 redirect generator. Turn a list of old and new URLs into redirect rules for .htaccess, Nginx, Next.js, Vercel, Netlify, Cloudflare and Express.

Canonical: https://abacklaunch.com/tools/redirect-generator
Last updated: 2026-11-21

Paste old and new URLs and get 301, 308, 302 or 307 redirect rules for Apache, Nginx, Next.js, Vercel, Netlify, Cloudflare and more.

This is an interactive tool. Use it at https://abacklaunch.com/tools/redirect-generator (it runs in your browser; nothing is uploaded).

## How to use it

1. **Paste URL pairs**: Old URL and new URL per line, separated by a space or comma.
2. **Pick your platform**: .htaccess, Nginx, Next.js, Vercel, Netlify, Cloudflare, Express.
3. **Copy the rules**: Then test a few with the redirect checker.

## Redirects for migrations and renames

When a URL changes, a permanent (301 or 308) redirect sends visitors and search engines to the new one and carries its ranking signals over. Map every old URL that has traffic or links to its closest new page, not all to the home page.

Rules are generated with paths only when old and new are on the same site, and with full URLs when they move to another domain.

## Next.js and Vercel: permanent: true is a 308

In Next.js redirects() and in vercel.json, permanent: true sends a 308 and permanent: false sends a 307. Neither sends a 301. So when you pick 301, the rules use statusCode: 301 instead, and a 302 uses statusCode: 302. Next.js and Vercel do not allow permanent and statusCode on the same rule, so each rule has one or the other.

Pick 308 or 307 and the rules use permanent: true or permanent: false, the short form both platforms document. For Apache, Nginx, Netlify, Cloudflare and Express, the status you pick is written as is.

## Questions

### 301 or 308?

Both are permanent. 308 keeps the request method; for pages, they behave the same in search.

### Why does my Next.js redirect return 308 instead of 301?

Because permanent: true in Next.js and vercel.json always sends 308. To send a real 301, use statusCode: 301 instead of permanent. Pick 301 here and the Next.js and Vercel rules are written that way.

### When should I use a 302 or 307?

Only when the move is temporary, like a sale page or maintenance. Search engines keep the old URL in results for a temporary redirect, so use 301 or 308 when the page has moved for good.

### How many redirects can I add?

As many as you paste. Very large maps are better served from a lookup table than thousands of rules.

### How long should I keep redirects?

At least a year, and ideally for good if the old URLs have links.

### Is anything uploaded?

No. Rules are built in your browser.

## Related

- [Redirect checker](https://abacklaunch.com/tools/redirect-checker)
- [Sitemap compare](https://abacklaunch.com/tools/sitemap-compare)
- [Canonical URL checker](https://abacklaunch.com/tools/canonical-url-checker)
- [Robots.txt generator](https://abacklaunch.com/tools/robots-txt-generator)
- [Noindex checker](https://abacklaunch.com/tools/noindex-checker)
- [Free Markdown and schema tools](https://abacklaunch.com/tools/category/markdown)
