Redirect Rules Generator

Generate 301 and 302 redirect rules for nginx, Apache .htaccess, Netlify, Vercel and Cloudflare from a simple list. Free tool.

Separate with a space or comma, e.g. /old /new

Use 301 when a page has moved for good — search engines pass its ranking to the new URL.

Server

2 redirects
location = /old-page { return 301 /new-page; }
location = /blog/2023 { return 301 https://example.com/blog; }

How to use Redirect Rules Generator

  1. List old and new URLs, one pair per line.
  2. Choose 301 (permanent) or 302 (temporary).
  3. Pick your server and copy the rules.

Good to know

  • Test redirects on a staging site first — a wrong rule can send every page to the same place.
  • Runs in your browser; nothing is uploaded.

Privacy

Runs entirely in your browser. Nothing you enter or open here is uploaded.

Related tools