Skip to content
Convertto

Redirect Rule Generator

Generate redirect rules for Apache, Nginx, Netlify, Vercel and Next.js.

To create a redirect rule, enter the old and new paths and pick your server. Rules are generated for Nginx, Apache, Netlify, Vercel and Next.js. Use 301 for permanent moves so search engines transfer ranking signals to the new URL.

Runs in your browser
Privacy
Runs entirely in your browser — nothing is uploaded
Cost
Free, unlimited, no sign-up

Frequently asked questions

Should I use 301 or 302?

301 for permanent moves — it transfers ranking signals and browsers cache it, sometimes indefinitely. 302 for temporary situations such as maintenance or A/B tests, where you want the original URL to keep its authority.

How to use the redirect rule generator

  1. 1Enter or paste your from path.
  2. 2Enter or paste your to path or url.
  3. 3Choose the server.
  4. 4Turn "Permanent (301)" on or off as needed.
  5. 5The result appears immediately — copy or download it.

Embed this tool

Put the working redirect rule generator on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.

Share this tool

Last updated

More developer tools