FREE ONLINE TOOLTechnical SEO

301 redirect generator

Draft exact-path 301 redirect rules for Apache or Nginx

Create exact-path 301 redirect rules for Apache or Nginx. Use this helper to draft a rule for a deliberate URL move.

  • No account needed
  • Practical guide included
  • Clear data boundaries
301 redirect generator
Private by design

Preparing your workspace…

301 redirect generator features and uses

Draft an exact-path redirect for a deliberate URL move. Review where the rule belongs in the server configuration and test it before replacing an established route.

Map an old URL to a relevant final destination and keep a copy of the server configuration. Generated rules need testing in your actual server context; they do not check whether a destination exists or whether another rule creates a loop.

Continue this task with Imported redirect chain analyzer and URL inspector.

For a worked publishing workflow, read 301 vs 302 Redirects: How to Choose and Test the Right One.

Common uses

  • Move a renamed article
  • Prepare migration mappings
  • Draft a single permanent redirect

How to use this tool

Follow these steps to prepare your input, run the tool and review its output.

  1. Identify the old path precisely

    Enter the original path. Use the actual route you intend to move, rather than an overly broad pattern.

  2. Choose the server and final target

    Set the full destination URL and server type. Apache and Nginx have different configuration contexts and escaping needs.

  3. Test the resulting response

    Review the rule and test it in staging. Check the old URL, the destination and any existing redirects for a chain or loop.

Example input and output

Illustrative 301 redirect generator example

Illustrative example
Starting input
Old path /old-guide; destination https://example.com/new-guide/; Apache selected.
What to look for
A draft exact-path permanent redirect for the chosen server.

Demonstration only. Apply the output only in the appropriate reviewed server context.

How to interpret the results

Generating a rule does not establish that the server is running that configuration.

A redirect is useful only when its destination preserves the visitor’s intended task.

Before you use the result

  • Creating a redirect loop.
  • Applying the rule in an incompatible server context.
  • Ignoring existing rules and query-string behavior.

Frequently asked questions

Answers about using this tool, interpreting its results and how it handles your data.

How we handle your data
Does this update my server automatically?

No. It produces a draft rule for review and manual deployment through your server workflow.

Should I redirect every missing URL to the home page?

Choose a relevant replacement where one exists; a blanket destination can be misleading to visitors.

Can I use the output on either server unchanged?

No. Select Apache or Nginx and use the appropriate configuration context.

What should I test before deployment?

Server context and existing rules matter. Back up your configuration and check for loops and redirect chains before applying changes.

Is this tool free, and do I need to sign up?

This tool is free to use without an account or subscription. Supply your input in the workspace on this page, then run the tool. Your browser needs to support the features used by the tool; keep an original copy and review any generated output before applying it to a live website.

Are my files or text uploaded to your server?

This tool processes the supplied input locally in your browser. It does not upload your files or text to our server for processing. Copy or download the result you want to keep; the tool does not publish changes to your website automatically.