The content-rewrite function rewrites the string in the document that is being sent to the client.
When a document is sent by the proxy server, the content-rewrite function is invoked if it has been configured and would replace the from string/url to destination string/url before sending the response to the client.
The patterns are nothing but strings which would be replaced in the outgoing document. The pattern can be either an url with absolute or relative links, or any text string like server name and so on.
Output fn="insert-filter" filter="content-rewrite" type="text/html" from="<sourcepattern>" to="<destpattern>"
The following table describes parameters for the content-rewrite function.
Table 5–89 content-rewrite parameters
Parameter |
Description |
---|---|
filter |
Specifies the name of the filter to be executed. |
type |
Indicates on what content-type this filter is applied. For example, text , html, and so on. |
Output fn="insert-filter" type="text/*" filter="content-rewrite" from="iPlanet" to="Sun ONE (now called) Sun Java System Web Server" |