Orqeo agency ↗

SEO

.htaccess Redirect Generator

From a list of URLs to deployment-ready .htaccess rules.

A redesign or migration without redirects throws years of SEO out the window: every old URL left returning a 404 loses its rankings and its inbound links. Simply paste your mappings — one "old URL, new URL" pair per line, separated by a space or a tab — and choose between a permanent (301) or temporary (302) redirect. The tool generates the matching .htaccess rules, with a RewriteRule fallback for addresses that carry query parameters, and the output updates as you type. All that's left is pasting the block into the .htaccess file at your site's root. Free, no account needed, even for hundreds of redirects at once.

How does it work?

  1. Paste your mappings: one "old new" pair per line.
  2. Choose the type: permanent (301) or temporary (302).
  3. Click "Generate" and review the produced rules.
  4. Copy the block into the .htaccess file at the site root, then test.

Frequently asked questions

301 or 302 — which should I choose?

A 301 (permanent) passes the old URL's authority to the new one: it's the right choice for a redesign, a migration, or any page moved for good. A 302 (temporary) keeps the old URL in the index: reserve it for genuinely short-lived situations.

Why do some rules use RewriteRule?

The Redirect directive can't match addresses containing query parameters (anything after a "?"). For those, the tool automatically generates a RewriteRule with the right condition, so the redirect works in every case.

Where do these rules go?

In the .htaccess file at your site's root, on an Apache or LiteSpeed server. On nginx the syntax differs: your mappings remain valid, but the rules must be translated into the server configuration.

How do I verify my redirects work?

Open a few old URLs in the browser and check that each lands on the right page in a single hop. Avoid redirect chains (A to B to C): always point directly to the final address.

Related tools