Redirect Rules Generator

Redirect Rules Generator

Generate Apache or Nginx redirect rules from old,new URL maps.

Redirect Rules

About the Redirect Rules Generator Online Free Tool

The Redirect Rules Generator Online Free Tool converts old,new path pairs into Apache or Nginx redirect rules. It supports 301 or 302 redirects and an option to preserve query strings where the rule style allows it.

How to Use the Redirect Rules Generator Online

  1. Choose Apache or Nginx output.
  2. Select the redirect status code.
  3. Enter one old,new redirect pair per line.
  4. Generate and review the redirect rules before deployment.

Choosing Options Correctly

Use 301 for permanent migrations and 302 for temporary changes. Test generated rules in a staging environment because server configuration context can affect syntax.

Common Use Cases

  • Create redirects for renamed pages.
  • Prepare migration maps for Apache or Nginx.
  • Generate quick rules from a two-column URL list.

Quick FAQ

Can I paste full URLs?
The tool is designed for path pairs, but destination values can point to an absolute URL if your server configuration allows it.

Should I test generated rules?
Yes. Always test redirects in staging before applying them to production.

How do redirect loops happen?
Loops usually come from mapping a destination back to an old URL or creating overlapping rules that catch each other.

Can I generate bulk redirects?
Yes. Paste multiple old-to-new path pairs, one mapping per line.