Chapter 86. Url Rewrite Policy Configuration Mode; Absolute-Rewrite - IBM WebSphere XS40 Command Reference Manual

Datapower xml security gateway
Table of Contents

Advertisement

Chapter 86. URL Rewrite Policy configuration mode

This chapter provides an alphabetic listing of commands that are available in URL
Rewrite Policy configuration mode.
To enter this configuration mode, use the Global urlrewrite command. While in
this configuration, define rewrite rules that perform the following types of
replacements:
v Rewrite an entire URL or a portion of a URL based on a URL match.
v Replace the value of the Content-Type header based on a URL match.
v Replace the value of an arbitrary header based on its value.
v Rewrite the body of an HTTP POST request.
Rewrite rules that are defined in the URL Rewrite Policy occur before document
processing.
v Any Matching Rule must match the rewritten URL.
v Any action in the Processing Policy can change the URI that is sent to the
All of the commands that are listed in "Common commands" on page 2 and most,
but not all, of the commands that are listed in Chapter 114, "Monitoring
commands," on page 949 are also available in URL Rewrite Policy configuration
mode.

absolute-rewrite

Rewrites the entire URL or a portion of the URL based on a URL match.
Syntax
absolute-rewrite expression input-replace style-replace [input-unescape] [style-unescape]
[normalize]
Parameters
expression
© Copyright IBM Corp. 1999, 2008
backend server.
Specifies a PCRE that defines the match condition that triggers the rewrite
rule. A candidate URL that matches this PCRE triggers the rule. For
examples:
.* or *
Matches any string.
(.*)xsl=(.*)\?(.*)
Matches a string of the following format:
1. A text subpattern.
2. Followed by xsl=.
3. Followed by a text subpattern.
4. Followed by ?. The backward slash (\) in the PCRE is a URL
escape.
5. Followed by a text subpattern.
701

Advertisement

Table of Contents
loading

Table of Contents