rule rule

Request rule element. One or more are optional in the <ruleset> element.

Attributes section-aa23349645434db99d46957a96f2e1e1

OnMatch="break"|"continue"|"error" Optional. Default is “break”.

Name=" *text*" Optional. Used to identify the <rule> element in debug logs and error messages.

In addition, <rule> elements may define any of the following attributes in any combination. If specified, and the rule is successfully matched, they override the corresponding catalog attributes for this request.

<rule> attribute
Corresponding Image Catalog attribute
DefaultPix
attribute::DefautPix
ErrorImage
attribute::ErrorImage
Expiration
attribute::Expiration
MaxPix
attribute::MaxPix
RootUrl
attribute::RootUrl

Refer to the description of the corresponding image catalog attribute for details.

The Expiration attribute only overrides the default attribute value; it is ignored if a specific catalog::Expiration value applies to the request.

Data section-401b6dfce082490f81229a19b73f2562

<expression>
Optional.
<substitution>
Optional.
<addressfilter>
Optional.

Notes section-a27b91f9a03047c0bb7edc0967fb4216

If both <expression> and <substitution> are specified, and captured substrings are not used, the first matched sub-string is replaced with <substitution>.

If <expression> is not specified, any path matches and <substitution> is appended to the end of the path.

If <substitution> is not specified, the matched substring is removed.

The <addressfilter> is applied only when a match occurs, and before query rules are applied.

recommendation-more-help
a26166cd-f2f4-45ce-996d-96a0f0d6cf49