Redirect Rule Generator

Create exact-path Apache or Nginx redirect rules from source and destination pairs.

Your supplied content is processed in this browser, without an external API.

Review and test rules before installing. Source paths must exclude query strings; query strings are discarded.

Browser processing This tool runs in your browser where supported.
Works on all devices Use it on desktop, tablet, or mobile without installing extra software.
No installation Open the page, use the tool, and download or copy your result.

Prepare exact-path redirects for a planned page move or temporary destination change. Choose Apache or Nginx, select a 301 or 302 status, and enter source-path and destination-URL pairs to generate configuration text.

How to Use Redirect Rule Generator

  1. Select Apache or Nginx and the intended redirect status.
  2. Enter one source path and absolute destination URL pair per line.
  3. Generate and review the exact-path rules, including query-string behavior.
  4. Apply them in the appropriate server context and verify the live redirect chain.

Map old paths to their intended destinations

The generator is designed for explicit path pairs, not broad wildcard migrations. For Apache, it outputs rewrite rules for an Apache 2.4+ document-root .htaccess file. For Nginx, it outputs exact-match location blocks. The tool does not install either configuration on your server.

Example: move one published guide

Enter /old-guide | https://example.com/new-guide for a reviewed page move. Choose the status that fits the intended behavior. The generated rules discard incoming query strings, so do not use them unchanged when a workflow requires parameter preservation.

Review configuration and loops before applying

Source paths must exclude queries, fragments, and unsupported configuration characters. Review repeated sources and make sure a destination does not redirect back to the old path. Test the rules in the correct server context, with a way to restore the previous configuration if necessary.

After installation, use the HTTP Status and Redirect Checker to inspect the actual chain. Update preferred URLs in the sitemap and any relevant canonical references.

Key Features

  • Browser-based processing
  • Example inputs
  • Copy and download results
  • No paid API or signup

Common Use Cases

  • Website publishing
  • Content review
  • SEO maintenance

Privacy

Your supplied content is processed in your browser and is not uploaded by this tool.

Limitations

Review and test rules before installing. Source paths must exclude query strings; query strings are discarded.

Frequently Asked Questions

Does the generator install redirects?
No. It produces configuration text for you to review and apply.
Are query strings preserved?
No. The generated rules discard incoming query strings. Review the configuration separately if parameters must be preserved.
Can I generate wildcard redirects?
This tool is limited to exact source paths. It does not create a general wildcard migration strategy.
Where do Apache rules belong?
The generated pattern is intended for Apache 2.4+ .htaccess in the document root. Server-level configurations can require different patterns.

Need a tool we do not have?

Tell us what would help and we will consider it for the FreeToolsBundle roadmap.

Request a Tool