Fortinet 372 FortiWeb 5.0 Patch 6 Administration Guide
For example, for the URL rewriting rule to match all URLs that begin with
/wordpress, you could enter ^/wordpress, then, in Meet this condition if,
select Object matches the regular expression.
The pattern is not required to begin with a slash ( / ).
When you have finished typing the regular expression, click the >> (test) icon.
This opens the Regular Expression Validator window where you can fine-tune
the expression (see “Regular expression syntax” on page 673, “What are
back-references?” on page 678 and “Cookbook regular expressions” on
page 680)
Protocol
Filter
Enable if you want to match this condition only for either HTTP or HTTPS.
Also configure Protocol.
For example, you could redirect clients that accidentally request the login
page by HTTP to a more secure HTTPS channel — but the redirect is not
necessary for HTTPS requests.
As another example, if URLs in HTTPS requests should be exempt from
rewriting, you could configure the rewriting rule to apply only to HTTP
requests.
Protocol Select which protocol will match this condition, either HTTP or HTTPS.
This option appears only if Protocol Filter is enabled.
Content
Type Filter
Enable if you want to match this condition only for specific HTTP content
types (also called Internet or MIME file types) such as text/html, as
indicated in the Content-Type: HTTP header. Also configure Content Type
Set.
Content
Type Set
In the left text area, select one or more HTTP content types that you want to
match this condition, then click the right arrow button to move them into the
text area on the right side.
This option is visible only if Content Type Filter is enabled.
Meet this
condition if
Indicate how to use Regular Expression when determining whether or not this
URL rewriting condition is met.
•Object does not match the regular expression — If the regular
expression does not match the request object, the condition is met.
•Object matches the regular expression — If the regular expression
does match the request object, the condition is met.
If all conditions are met, the FortiWeb appliance executes the Request Action
or Response Action, whichever you selected.
Setting
name
Description