Kemp Support, how can we help?

The latest application delivery knowledge and expertise at your fingertips.

Implementing a URL Modification that includes a query string

A classic URL replacement will not work properly if we are trying to add the query string that includes "?" (question mark) in the URL.

The reason behind this behavior is that "?" is used also as a regex command and it is conflicting with the regex expression.

The equivalent ASCII character should be used instead (in Hx value).

The Hx equivalent for ? is "3f".

Refer to the following link for a list of all the ASCII characters: http://www.asciitable.com.

Example

Match all the entries on root (i.e. match domain.com/) and modify the URL, adding the following (/abc/def?1234=abcd).

The modified URL will be then:

domain.com/abc/def?1234=abcd

 

This is the corresponding URL Modification Rule:

Match String: /^\/$/

Modified URL: /abc/def%3f1234=abcd

 

Note: The % symbol is needed in order to pass the Hx value to the LoadMaster.

 


Was this article helpful?
0 out of 0 found this helpful

Comments