How to use Web Server Rule Generator
- Select the server and supported rule type.
- Enter a literal path or the supported asset settings.
- Generate the snippet, review its context and test it before applying.
Example: Web Server Rule Generator
An exact redirect from /old to https://example.com/new.
Options
- Server context
- Choose nginx or Apache and place the generated snippet only in the stated configuration context. Similar redirect tasks use different syntax on the two servers.
- Literal path and query
- Enter an exact supported path rather than a regex. The destination’s query replaces the original query, so check that behavior before using the redirect.
Supported inputs and limits
Where your input is processed
This tool processes your input in this browser. Your text and files are not uploaded to UseFreeTools. Check this tool's limits for anything it may save on your device.
Test an exact rule before broadening it
The generated snippet does not change any server. Review syntax in the intended version and context, test the matching path and a nonmatching path, and inspect the actual redirect status and destination. Static caching applies to the exact named public asset; it is not a policy for authenticated or dynamic pages.
Questions about Web Server Rule Generator
Will generating a rule change my server?
No. The result is a text snippet for you to review.
Can I paste a regular expression or directive?
No. These fields accept the documented literal choices and reject configuration injection.
Can static-cache rules be used for account pages?
No. They are scoped to the named static-asset case; dynamic or private responses need their own policy.