Redirect rule generation
Generate Nginx, Apache, and Cloudflare redirect text from the old path, new path, status code, and query options.
How to Generate Redirect Rules
Redirect rule generation processes input only in the current browser; it does not upload, connect to the internet, or write to persistent storage.
Enter a path
Enter the old path and target path; the default example is /old-docs to /docs/start.
Select a rule
Select 301/302/307/308, and decide whether to retain the query.
Copy configuration
Copy the rules for each target platform separately, then perform syntax and regression checks in the target environment before deployment.
Limitations and Notes
- Paths are treated only as strings; the tool does not check whether the target exists or is safe.
- Different server versions and contexts may require adjustments to the configuration location and escaping.
- The tool will not request URL, modify the server, or claim that the configuration overrides all security policies.
FAQ
Will it access the destination address?
No, the sole purpose is to generate text.
Why is the query preservation syntax different?
The configuration syntax for Nginx, Apache, and Cloudflare differs, so the tool generates the corresponding text separately.
Can it generate permanent redirects?
You can choose 301, but confirm the caching and rollback strategies before going live.