If your website’s address is this:
http://testsite.com/testapp/default.htm
and you want your users to see the URL below in browser address bar (The name “testapp” is stripped out)
http://testsite.com/default.htm
you can use the URL Rewrite Inbound rule below for removing the folder name from the FQDN:
<rewrite>
<rules>
<rule name="Remove testapp" stopProcessing="true">
<match url=".*(testapp)(.+)" />
<action type="Redirect" url=http://testsite.com{R:2} appendQueryString="false" />
</rule>
</rules>
</rewrite>
Published May 25, 2021
Version 1.0Nedim
Former Employee
Joined November 26, 2018
IIS Support Blog
Follow this blog board to get notified when there's new activity