Show TOC

URL Modifications - Redirecting, Rewriting, and Filtering HTTP RequestsLocate this document in the navigation structure

Use

Incoming HTTP requests can be modified before they are forwarded to the application server. Modification actions can also be applied to the URLs of inbound requests.

You can redirect, rewrite, and filter the URL of an incoming HTTP request. A line in the action file describes precisely one modification action. The sequence in the action file defines the sequence of execution too. You can execute multiple URL modifications consecutively.

If an HTTP request is redirected or rejected, the execution of the modification actions in the action file stops.

Caution Since only normalized URLs are modified and forwarded, the URL rewrite should only be used for applications that are precisely known. With operation RegRewriteRawUrl only URLs in an non-normalized status can be rewritten.

Regular expressions are used to get maximum flexibility when modifying HTTP requests. URL modifications actions using regular expressions is very powerful. With a regular expression you can define whether the modification action on the URL of the incoming HTTP request is to be executed or not.

Note that the regular expression is applied to the URL-decoded path. The URL decoding converts the numeric characters (%xx) into an ASCII value.

Example

Encoded path:

sap(bD1kZSZjPTAwMA==)/bc/bsp%3csap%20test/it00/default.htm

Decoded path:

sap(bD1kZSZjPTAwMA==)/bc/bsp_sap test/it00/default.htm