Fortinet 153 FortiWeb 5.0 Patch 6 Administration Guide
URL replacers match the URL as it appears in the HTTP header of the client’s request (using the
regular expression in URL Path) and interpret it into this standard URL formulation:
New URL?New Param=Param Change
For example, if the URL is:
/application/value
and the URL replacer settings are:
$0 holds this part of the matched URL:
/application
and $1 holds this part of the matched URL:
value
so then the URL will be understood by auto-learning, and displayed in the report, as:
/application?setting=value
To create a URL interpreter
1. Go to Auto Learn > Application Templates > URL Replacer.
To access this part of the web UI, your administrator’s account access profile must have
Read and Write permission to items in the Autolearn Configuration category. For details, see
“Permissions” on page 47.
2. Click Create New.
Table 11:
Setting name Value
Type Custom-Defined
URL Path (/application)/([^/]+)
New URL $0
Param
Change
$1
New Param setting
Need a refresher on regular expressions? See “Regular expression syntax” on page 673, “What
are back-references?” on page 678, and “Cookbook regular expressions” on page 680. You
can also use the examples in this section, such as “Example: URL interpreter for WordPress” on
page 160.