After you create
any needed rewrite action(s), you must create at least one rewrite policy to
select the requests that you want the NetScaler appliance to rewrite.
A rewrite policy
consists of a rule, which itself consists of one or more expressions, and an
associated action that is performed if a request or response matches the rule.
for evaluating HTTP requests and responses can be based on
almost any part of a request or response.
Even though you cannot
use TCP rewrite actions to rewrite data other than the TCP payload, you can
base the policy rules for TCP rewrite policies on the information in the
transport layer and the layers below the transport layer.
If a configured
rule matches a request or response, the corresponding policy is triggered and
the action associated with it is carried out.
Note: You can use
either the command line interface or the configuration utility to create and
configure rewrite policies. Users who are not thoroughly familiar with the
command line interface and the NetScaler Policy expression language will
usually find using the configuration utility much easier.