FortiWeb
A FortiWeb can be configured to join a Security Fabric through the root or downstream FortiGate.
Ahmed_Galal
Staff
Staff
Article Id 389971
Description This article describes how to remove a certain directory from the URL, which can be helpful while migrating from testing to the production environment or vice versa.
Scope FortiWeb.
Solution

In the following scenario, the FortiWeb administrator has been assigned a task to only remove /prod from the below URL and keep the rest: www.Test.com/prod/XISOAPAdapter/MessageServlet?channel=HR_Cloud:WORKDAY:CC_HR_MasterData_SoapOut

This can be achieved by using URL Rewriting with request action: rewrite HTTP Header & matching condition [HTTP URL: ^/prod/(.*)]


url rewriting.png

Result: 
In the below screenshot on the left is the connection from the client side where the client is sending HTTP request:
GET /prod/XISOAPAdapter/MessageServlet?channel=HR_Cloud:WORKDAY:CC_HR_MasterData_SoapOut 
And on the right side, FortiWeb has removed /prod and kept the rest of the URL.

url rewriting1.png
Related document:
Rewriting & redirecting