Guidelines
Use the header-rewrite command to replace the contents of an arbitrary header.
PCRE documentation is available at the http://www.pcre.org web site.
Related Commands
Examples
v Adds a header rewrite rule to a URL Rewrite Policy. If the message contains the
no rule
Deletes all rewrite rules from the current URL Rewrite Policy.
Syntax
no rule
Guidelines
The no rule command deletes all rules from the current policy.
Examples
v Deletes all rules from the current policy.
post-body
Rewrites the contents of the HTTP POST body based on a URL match.
Syntax
post-body *.* expression input-replace style-replace [input-unescape] [style-unescape]
[normalize]
Parameters
*.*
expression
true
(Default) Enables normalization.
false
Disables normalization.
Age header, the rule replaces its value with 1.
# header-rewrite Age *.* 1
#
# no rule
#
Indicates a required argument for backward compatibility.
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:
Chapter 86. URL Rewrite Policy configuration mode
705