Rewriting rules define how the proxy server rewrites URLs. Responses that have been redirected by target servers typically return a 302 status code with a location header that defines the URL that the client should be redirected to. Rewriting this URL is necessary if the target server is not aware of the proxy servers. The redirected URL is modified to correctly point clients to the proxy server instead of directly to a target server that may not be visible to clients. Use the following properties to configure the URL rewriting rules for a proxy server
To view this administrative console page, click Servers > Proxy servers > server_name > HTTP proxy server settings > Rewriting rules > New.
Specifies the original URL pattern in the 302 response header from the target server.
The pattern can include the following wild card symbol: *
Specifies how that URL should be modified so that the client is redirected to the proxy server or an appropriate public URL.
The pattern can include the following wild card symbol: *
A rule with a from URL pattern of http://internalserver/* and to url pattern of http://publicserver/* would cause a redirected response with the original location header of http://internalserver/secure/page.html to be rewritten as http://publicserver/secure/page.html.