Build an Apache 301 redirect map

For teams moving a site, renaming pages or preparing a release while preserving working routes from old addresses.

Turn source-target pairs into deployment-ready Apache 301 redirects and make any old path left without a destination easier to spot.

How to use

  1. Open the tool and prepare your pairs, with one line per old address, a vertical bar, then the new address.
  2. Paste the pairs into the input area or import an accepted text, CSV, JSON, Markdown, XML or YAML file.
  3. Run the generation to turn the pairs into Apache 301 redirect rules.
  4. Read the output and check that every old path has a destination.
  5. Copy the rules into your configuration, then test them in a staging environment.

Example

After renaming several pages, a team prepares a file with old routes and their new destinations. They paste the pairs into the tool, retrieve Apache 301 rules and check that no important old address was missed before the release.

Input

/old|https://example.com/new
/contact|https://example.com/contact

Output

Redirect 301 /old https://example.com/new
Redirect 301 /contact https://example.com/contact

Limits and formats

Where processing happens

The conversion happens entirely inside your browser. The source-target pairs and the generated result are not uploaded outside. You can close the page once you have copied the rules.

Frequently asked questions

What format should the pairs use?

The visible example uses an old address, a vertical bar and the new address, with one pair per line. You can also import a text, CSV, JSON, Markdown, XML or YAML file if your data is already structured that way.

Can I generate redirects for another web platform?

No, this tool is designed to produce Apache 301 redirects. For another technology, you will need to adapt the rules manually or use a tool built for that specific configuration.

How can I spot an old address with no destination?

Review the generated output and check that every old address from your list appears with a target. If a line is skipped or malformed, fix the corresponding pair and run the generation again.

Tools in the same category