Example Inc. wants to redirect query requests to the appropriate server, as shown here.
- Request: GET /query.cgi?server=5HOST: www.example.com
- Redirect URL: http://web-5.example.com/
To implement this redirection, you would first create a rewrite action with the values in the following table.
You would then create a rewrite policy with the values in the following table.
Finally, you would bind the rewrite policy, assigning it a priority of 900. Because this policy should be the last policy applied to a request that matches its criteria, you set the goto expression to END.
Incoming requests to any URL that begins with http://www.example.com/query.cgi?server= are redirected to the server number in the query.