APPENDIX C

Tutorial Examples of Advanced Policies for Rewrite

With the rewrite feature, you can modify any part of an HTTP header, and, for responses, you can modify the HTTP body. You can use this feature to accomplish a number of useful tasks, such as removing unnecessary HTTP headers, masking internal URLs, redirecting Web pages, and redirecting queries or keywords.

In the following examples, you first create a rewrite action and a rewrite policy. Then you bind the policy globally.

In This Appendix

Redirecting an External URL to an Internal URL

Redirecting a Query

Redirecting HTTP to HTTPS

Removing Unwanted Headers

Reducing Web Server Redirects

Masking the Server Header

Redirecting an External URL to an Internal URL

This example describes how to create a Rewrite action and Rewrite policy that redirects an external URL to an internal URL. You create an action, called act_external_to_internal, that performs the rewrite. Then you create a policy called pol_external_to_internal

To redirect an external URL to an internal URL by using the command line

To create the rewrite action, at the NetScaler command prompt, type:

Page 259
Image 259
Citrix Systems 9.2 Tutorial Examples of Advanced Policies for Rewrite, Redirecting an External URL to an Internal URL