Chapter 1 What’s New for FortiOS 5.0 : New features in FortiOS 5.0 Patch 4 : Server load balancing enhancements : HTTP redirects
  
HTTP redirects
Server load balancing now also supports checking HTTP redirects and setting the maximum number of redirects when 300-level return codes are received.
You can set http-max-redirects in the range 0 to 5. The default value is 0 which means do not check redirects, just assume they are available. This is how redirects functioned previously. When you set this option to 1 or more, the FortiGate unit will check up to 5 redirect URLs, until it finds one that is active. Traffic is then re-directed to the first active URL that is found.
Use the following command to check up to 3 redirects:
config firewall ldb=monitor
edit 0
set set type http
set port 80
set http-get "/index.php"
set http-max-redirects 3
end