Hi @FelipeSantosBRA,
To achieve a redirection where the browser's address bar still displays the original URL while redirecting internally to another URL, you need to use a reverse proxy setup instead of a HTTP redirection.
Firstly, you need to install the ARR module, download link: https://www.iis.net/downloads/microsoft/application-request-routing
After the installation is complete, you can see the ARR module at the IIS server level. Double-click to open it, select Server Proxy Settings, and check Enable proxy.
Then set the rewrite rules in the site, here's how you can achieve this with URL Rewrite:
<rule name="test_reverse_proxy" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^name.domain.com$" />
<add input="{HTTPS_HOST}" pattern="^name.domain.com$" />
</conditions>
<action type="Rewrite" url="http://IP address/service/" />
</rule>
This rule will internally rewrite requests from http://name.domain.com to http://IP address/service, but the browser's address bar will still display http://name.domain.com. For more information about IIS reverse proxy, please refer to the following documents: Setup IIS with URL Rewrite as a reverse proxy for real world apps Reverse Proxy with URL Rewrite v2 and Application Request Routing
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the email notification for this thread. Best regards, Yurong Dai