Fortinet 370 FortiWeb 5.0 Patch 6 Administration Guide
Redirect (301 Permanently) or Redirect (302 Temporary) — In Location, type a URI, such
as http://www.example.com/new-url, to use in the e 301 Moved Permanently
or the 302 Moved Temporarily redirection HTTP response from the FortiWeb
appliance. Like Host and URL, this field supports back-references such as $0 (see “What
are back-references?” on page 678).
Send 403 Forbidden — Return a 403 Forbidden response to the client.
6. If you selected Response Action in Action Type, in the Response Action drop-down list,
select one of the following:
Rewrite HTTP Body — In Replacement, type the string that will replace content in the
body of HTTP responses (see “What are back-references?” on page 678 and “Cookbook
regular expressions” on page 680).
Rewrite HTTP Location — In Location, type a URI, such as
http://www.example.com/new-url, to use in the 302 Moved Temporarily
redirection when the HTTP response matches. Like Host and URL, this field supports
back-references such as $0 (see “What are back-references?” on page 678).
7. Click Create New to add match conditions for the rule to URL Rewriting Condition Table.
A dialog appears.
Referer Enable then type a URI, such as
http://www.example.com/index, if you want to rewrite the
Referer: field in the HTTP header.
This option is available only if Request Action is Rewrite HTTP
Header.
Using Physical
Server
Enable to insert the variable FORTIWEB_PSERVER in Referer.
At the time of each specific HTTP request, FortiWeb will replace this
variable with the IP address of the physical server to which it is
forwarding the request.
Tip: Use this option when the Deployment Mode option in the server
policies using this rule is either Server Balance or HTTP Content
Routing. In such cases, by definition of load balancing, HTTP
requests will be distributed among multiple web servers, and the
specific IP addresses of the physical servers cannot be known in
advance.
Setting name Description