I need to redirect a web request as follows, and can’t get it working with HAProxy.
Original URL:
http://mywebpage.com/webservices/index.asp?param1?parm2
Redirect transparently (so client doesn’t see URL change) to:
https://myazuresite.azurewebsites.net/FunctionName?code=AzureFunctionID&url=/webservices/index.asp?param1?parm2
I can get it working with:
http-request redirect prefix https://myazuresite.azurewebsites.net/FunctionName?code=AzureFunctionID&url=
But this changes the URL presented to the user to that address, which will break application code.
Does anyone know how to do this?