+

Search Tips   |   Advanced Search

Rewriting rules configuration

Use this topic to rewrite redirected URLs.

Rewriting rules define how the proxy server will rewrite URLs. The proxy server currently only supports rewriting redirected responses. Responses 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.

To view this console page, click Servers > Proxy servers > server > HTTP proxy server settings > Rewriting rules > New.

 

Configuration tab

From URL Pattern

Specify the original URL pattern in the 302 response header from the target server.

The pattern can include the following wild card symbol: *

To URL Pattern

Specify 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.




 

Related tasks


Setting up the proxy server

 

Reference topic