Skip to content
Ovatly

Redirect Rule Generator

100% PrivateWebsite & Webmaster Tools

Turn a list of old and new URLs into ready-to-paste .htaccess or Nginx redirect rules.

Runs entirely in your browser. Your input is not uploaded to Ovatly or anywhere else.

  1. 1Enter a from path and a destination for the first redirect, and pick its status code.
  2. 2Add rows for each additional redirect.
  3. 3Choose the output format for your server or host.
  4. 4Fix any validation messages, then copy or download the generated block.

About this tool

The Redirect Rule Generator turns a list of from/to pairs into ready-to-paste server configuration in three formats: Apache .htaccess Redirect lines, Nginx rewrite and return rules, and the _redirects file format used by Cloudflare Pages and Netlify. Status codes 301, 302, 307 and 308 are supported per row, and the rows are validated before anything is generated.

Related tools

Advertisement

Part of Ovatly's free tools in Website & Webmaster Tools.