'IIS URL Rewrite need to redirect and rewrite URL

I want users to be able to:

  • go to "https://webserver1.acme.com/UserManagement2" and hit the Tomcat application on a different server: "https://10.0.0.7:9443/UserManagement"

What does work is this:

  • go to "https://webserver1.acme.com/UserManagement" and hit the Tomcat application on a different server: "https://10.0.0.7:9443/UserManagement"

This rule does not seem to work and directs me to a blank page:

<rules>
<rule name="UMSRedirect" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{PATH_INFO}" pattern="^/UserManagement2" />
</conditions>
<action type="Rewrite" url="https://10.0.0.7:9443/UserManagement" appendQueryString="true" 
    logRewrittenUrl="true" />
</rule>
</rules>

`



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source