Redirect Rule Generator Online
Generate Cloudflare Pages, Nginx or Apache exact-path 301 redirects.
Open Redirect Rule GeneratorFree · No sign-up · Browser-based processing
What Redirect Rule Generator does
Convert a list of old and new paths into permanent redirect configuration. The generator handles exact source paths and rejects wildcard rules, duplicate sources, self-redirects and local redirect cycles. Review host and query-string behavior in your deployment environment before applying the rules.
Common uses
- Preserve inbound links after a site restructure
- Consolidate old URLs onto canonical pages
How to use Redirect Rule Generator
- Enter an old path and a destination separated by whitespace on each line.
- Select cloudflare, nginx or apache for the target server.
- Download the generated configuration and test the redirects after deploying it.
Privacy: Runs locally in your browser. Input is not uploaded to the DevNet Kit server.
Redirect Rule Generator example
Try the tool with this representative input:
/old-page /new-page
/old-docs https://example.com/docs/Options
cloudflareExpected result
/old-page /new-page 301
/old-docs https://example.com/docs/ 301Redirect Rule Generator FAQ
Does this support regex redirects?
No. It creates exact-path rules. Configure wildcard or regex routing directly in your server when needed.
Are redirects immediately active?
No. You must deploy the generated configuration to the matching platform.
Generate one exact-path redirect before reviewing the target server configuration
Enter /old/ /new/ on one line and select cloudflare. The result is a Cloudflare Pages-style _redirects rule with status 301. The nginx and apache settings emit their own exact-path configuration forms. Each nonempty input line must contain one source and one destination separated by whitespace.
Sources must be exact paths without query strings or wildcards. The tool rejects duplicate sources, self-redirects and cycles it finds among the pasted path rules. These checks do not inspect existing server rules, absolute-URL chains or live responses. The generated text is not published automatically; place it in the appropriate configuration and test the deployed redirects, query handling and rule interactions separately.
Worked example
Input and settings:
/old/ /new/Options:
cloudflareExpected result or interpretation:
/old/ /new/ 301Questions about this workflow
Which formats and source paths does the 301 redirect generator support?
cloudflare emits Cloudflare Pages-style _redirects text, nginx emits an exact location block, and apache emits an anchored RedirectMatch rule. Enter a source and destination per line. The source must be an exact path without query strings or wildcards; the destination can be a path or HTTP(S) URL.
Do duplicate and cycle checks verify my live server or deploy the rules?
No. It rejects duplicate sources, self-links and cycles found among the pasted path rules, without inspecting existing server rules or all absolute-URL chains. It does not install configuration or verify live responses. Review and deploy the appropriate file, then test redirects and query handling on that server.