Tools Hub

Redirect Rule Generator

Generate redirect snippets for Apache, Nginx, Netlify or Vercel.

Browser onlyYour data never leaves this device.

Runs entirely in your browser. Paths and URLs never leave this device and no config is written automatically.

Details: Privacy policy

Inputs

Result

No inputs yet.

Enter source and destination.

Redirect Rule Generator turns a source path, destination and status code into an escaped snippet for Apache, Nginx, Netlify or Vercel, validating and encoding inputs and warning about loops. Migrations are where redirects go wrong, usually because a rule was written for the wrong server or because two rules point at each other, so the page asks for the source and destination and then writes the syntax the host you picked actually expects, with the characters that need escaping escaped. A loop warning appears when the rules you entered reference one another, and it is described as heuristic on the page rather than authoritative, because a complex chain can wrap through rules this tool never sees. Nothing is deployed: the output is text to paste into a configuration file, and the page says plainly that server versions differ and the snippet should be tested in the environment that will serve it. Status codes are part of the input rather than assumed, since a permanent and a temporary redirect are different decisions. The status code is written into the snippet rather than left as a comment, because a redirect that returns the wrong code is treated differently by crawlers and by browsers, and the difference between a permanent move and a temporary one is the kind of mistake that surfaces months later in a search console report.

How to use Redirect Rule Generator

  1. Enter source, destination, code and format.
  2. Review warnings and fix errors.
  3. Copy or download the snippet.

What you get

  • A redirect snippet in the syntax you pick: Apache, Nginx, Netlify or Vercel.
  • A heuristic loop warning when the rules you entered point at one another.
  • The exact lines to paste, with nothing written to any server.

When to use Redirect Rule Generator

  • Draft a 301 from /old to /new for Apache.
  • Create a Netlify redirect entry for a migrated page.
  • Document a migration's redirect map in the syntax the host actually expects.

Frequently asked questions about Redirect Rule Generator

Will the generator edit my server config?

No. It only outputs text to paste; you must add it to your config and test it.

Why warn about redirect loops?

If source and destination are the same, browsers loop; the tool flags it so you catch it before deploying.

Does syntax work on every server version?

No. Directives vary by version; the output includes a note to test in your environment.

Is anything crawled or published?

Nothing is fetched or written; snippets are built only from what you type.

Guides that compare Redirect Rule Generator

⚡Embed Redirect Rule Generator on Your Site & Get Badge↓

Embed this in-browser tool into any blog, documentation, or dashboard. Includes an optional dofollow backlink badge to credit Tools Hub.

Height:
<iframe src="https://salaq.com/embed/seo/redirect-rule-generator" title="Redirect Rule Generator — Tools Hub" width="100%" height="640" style="border:0;border-radius:12px;overflow:hidden;max-width:100%;" loading="lazy"></iframe>
<p style="font-size:12px;color:#6b7280;margin-top:6px;font-family:system-ui,-apple-system,sans-serif;">Powered by <a href="https://salaq.com/tools/seo/redirect-rule-generator" target="_blank" rel="noopener" style="color:#2563eb;text-decoration:underline;">Redirect Rule Generator on Tools Hub</a></p>

Feedback

Send feedback about this tool (placeholder — feedback collection is not wired up yet).