redirect-map.txt policy.cfg

URL Mapping

Prepare the route migration input.

Write the old-to-new path map once, then let the console translate it for both server targets.

Use one pair per line: old path on the left, full destination URL on the right.

apache.htaccess

Apache Output

.htaccess Rules

Use this block in Apache environments or `.htaccess` based rewrites.

Redirect 301 /old-url https://example.com/new-url
nginx.conf

Nginx Output

Server Rules

Use this block when the same redirect map needs Nginx rewrite syntax.

rewrite ^/old-url$ https://example.com/new-url permanent;

Practical guide

Use Redirect Rule Builder with a real workflow in mind.

Redirect Rule Builder is a lightweight Developer Utility freebie built to stay practical, readable, and easy to reuse without a database setup.

What to expect

  • Takes old-to-new URL mappings from a simple text format.
  • Generates redirect rules for Apache and Nginx.
  • Lets you choose the status code behavior for the redirect set.
  • Gives a copyable output block instead of requiring manual rewrite syntax work.

Inside the freebie

  • Takes old-to-new URL mappings from a simple text format.
  • Generates redirect rules for Apache and Nginx.
  • Lets you choose the status code behavior for the redirect set.
  • Gives a copyable output block instead of requiring manual rewrite syntax work.

Best use cases

Useful when a quick Developer Utility workflow needs to be tested, reused, or adapted into a larger product build.

  • Use Redirect Rule Builder as a starter utility, a learning reference, or a quick workflow base for your own projects.
  • Open the tool in the browser first to review the interaction flow before adapting the underlying files.
  • Because the freebie stays lightweight and database-free, it is easy to move between local builds and client workspaces.

Recommended workflow

  1. 1

    Set the main input first and keep the scope narrow to get a cleaner result.

  2. 2

    Use the first output as a working draft and adjust the tool settings before exporting.

  3. 3

    Review the result in the real context where it will be used before treating it as final.

Before you rely on the output

Is the output from Redirect Rule Builder final by default?

No. Treat the first result as a strong starting point. Review it in the context where you plan to use it, then tighten the final version before publishing or shipping.

Who is this tool most useful for?

Useful when a quick Developer Utility workflow needs to be tested, reused, or adapted into a larger product build.

What is the best way to get a better result?

Be specific with the input, keep the job narrow, and make one change at a time between runs. That usually leads to a cleaner result than trying to solve everything in one pass.