← All text tools

Redirect rule generator

Turn old → new URLs into 301 rules for Apache, Nginx, Cloudflare, Netlify, Vercel, IIS and Next.js.

  • Free
  • No sign-up
  • Works on any device

About Redirect rule generator

Turns a list of old and new URLs into ready-to-paste 301 redirect rules for Apache, Nginx, Cloudflare, Netlify, Vercel, IIS and Next.js. A 301 is a permanent move, passing most ranking signals to the new address. Avoid redirect chains, where A goes to B and then C.

How to use Redirect rule generator

  1. Enter old and new URLs, one pair per line.
  2. Choose your server type, such as Apache, Nginx or Netlify.
  3. Copy the rules into your configuration file.

Why use this tool?

Also known as

Frequently asked questions

When should I use 301 instead of 302?

Use 301 for permanent moves such as a new URL or domain. Use 302 only for temporary changes, since search engines may keep the old address.

Where do I paste the rules?

It depends on the server: an .htaccess file for Apache, the server block for Nginx, or a redirects file for hosts like Netlify. Back up the file before editing.

How do I test that a redirect works?

Open the old address in a private window and check that it lands on the new one. Make sure it goes in one step and not through a chain of redirects.

Is Redirect rule generator free?

Yes. Redirect rule generator on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put Redirect rule generator on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.

Related tools