Summary
This document contains information about using the Rewrite feature of the NetScaler appliance to change the destination path of a GET request based on the User-Agent.
Requirements
Before you start configuring the Rewrite feature, it is advisable to record an HTTP Header trace to confirm the User-Agents for the client requests. The following are the sample User-Agents that connected the Web site by using the Firefox version 3.5.8 and Microsoft Internet Explorer version 7.0:
You can configure the rewrite policy to match any expression in the User-Agent header value field.
Using the Rewrite Feature of the NetScaler Appliance to Change the Destination Path of a GET Request Based on the User-Agent
To use the Rewrite feature of the NetScaler appliance to change the destination path of a GET request based on the User-Agent, complete the following procedure from the command line interface of the appliance:
More Information
The following screenshot displays the traces of the packets recorded to show a GET request from a Firefox client to the / directory being directed to the /Firefox directory for the NetScaler appliance request to the backend server. Additionally, a GET request from an Internet Explorer client to the / directory is directed to the /IE directory for the NetScaler appliance request to the backend server.
