301 Redirect Rules Generator

Generate redirect rules for Apache .htaccess, Nginx, Netlify and Cloudflare Pages. Free, no sign-up, runs in your browser.

Loading tool…

About this tool

Enter old and new paths, one pair per line. The tool writes the matching 301 or 302 rules for your server or host.

How to use it

  1. Enter or paste your values in the fields above.
  2. The result updates as you type.
  3. Use the Copy button to copy the result.

Frequently asked questions

Should I use 301 or 302?

Use 301 for permanent moves so search engines transfer rankings. Use 302 only for temporary moves.

Let’s talk

Need a team to build it?

We build the software behind tools like this: web apps, APIs, SaaS products and AI features.