# Free 301 Redirect Generator

> Enter an old path and a new URL. Copy host-ready snippets for a permanent (301) or temporary (302) redirect.

```yaml
url: "https://www.scrolllaunch.com/tools/redirect-generator"
slug: redirect-generator
category: onpage
keywords: "301 redirect generator, htaccess redirect generator, 302 redirect generator, nginx redirect generator, vercel redirect"
```

## How to use

1. **Enter from and to** - Old path (or URL) and the destination URL.
2. **Choose 301 or 302** - Permanent vs temporary.
3. **Copy and deploy** - Paste the snippet for your host, then test with the redirect checker.

## How to generate a 301 redirect

Use 301 when a URL has moved for good so crawlers consolidate signals. Use 302 for a short-lived test or maintenance path.

Pick the snippet that matches how you host: next.config or vercel.json on this stack, Nginx/Apache on a VPS, _redirects on Netlify or Cloudflare Pages.

Always verify the live chain after deploy. A generator cannot see a CDN rule that overrides your file.

## What you get

- 301 and 302
- Apache, Nginx, Vercel, Next.js
- Netlify and Cloudflare _redirects
- Runs in the browser

## Related tools

- **[Redirect Checker](https://www.scrolllaunch.com/tools/redirect-checker)** - Free redirect checker - trace 301/302/307/308 chains, meta refresh, and the final landing URL.
- **[Canonical URL Checker](https://www.scrolllaunch.com/tools/canonical-url-checker)** - Free canonical URL checker - verify <link rel="canonical"> matches the final URL.
- **[HTTP Header Checker](https://www.scrolllaunch.com/tools/http-header-checker)** - Free HTTP header checker - inspect status, security headers, caching, and X-Robots-Tag.
- **[robots.txt Tester](https://www.scrolllaunch.com/tools/robots-txt-tester)** - Free robots.txt tester - fetch live rules, list sitemaps, and test if a path is allowed.

## Related

- [All tools](https://www.scrolllaunch.com/tools)
- [Pricing](https://www.scrolllaunch.com/pricing) - launch free; dofollow while the badge stays on your site.
- [Directories](https://www.scrolllaunch.com/directories) - curated startup directories ranked by DR.
