I know this can be done with URL Rewrite but this is a customer machine where they don't want to install extensions unless they really have to. The application is running in a folder under the original domain name like this:
domain.com/app1
If a request is made to domain.com/app1
I wan't it to be permanently redirected to domain.com/app1/
.
Application and IIS:
- .NET Framework 4.5
- IIS 7.0
Example rule that is last resort:
<rule name="Add trailing slash" stopProcessing="true">
<match url="(.*[^/])$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="{R:1}/" />
</rule>