VMware NSX
To create a Response Rewrite Load Balancer Rule in the NSX native load balancer, navigate to Networking > Load Balancing > Virtual Servers in the NSX Manager.
Match Condition
Condition: HTTP Response Header
Header Name: Location
Match Type: any value
Header Value: any value
Action
Action: HTTP Response Header Rewrite
Header Name: Location
Header Value: any value
In this configuration example, the NSX LB overwrites the Location header to https://example.org/example.html only when the web server responds with https://example.com/example.html.
Redirect destinations can also be configured within the Application Profile.
For more additional information refer NSX-T LB Encyclopedia.