At times, you might want to redirect a client to a different page based upon the server's response. For example, you could redirect a user to a custom page instead of the standard 404 error message when the Web site is not available. You can use the HTTP Rewrite feature of the NetScaler appliance to redirect the client requests to a customized Web page.
Redirecting the Client Requests to a Custom Page when the Backend Server returns the 404 Response Code
To redirect the client requests to a custom page when the backend server returns the 404 response code, complete the following procedure:
Note: In the preceding commands, the 302 Temporarily Redirect response code is used to redirect the client request to the customized page when the server returns a 404.
Note: Ensure that you have enabled the HTTP Rewrite feature of the NetScaler appliance.