Blog Post

IIS Support Blog
1 MIN READ

Remove folder/application names from URLs

Nedim's avatar
Nedim
Former Employee
May 25, 2021

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.0
No CommentsBe the first to comment