+

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

To view this admin console page ...

Servers > Server Types > WebSphere proxy servers > proxy_server_name > HTTP proxy server settings > Rewriting rules > New .

From URL Pattern

Original URL pattern in the 302 response header from the target server.

The pattern can include the following wild card symbol: *

To URL Pattern

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


Set up the proxy server