Applied on: Windows (ASP) Hosting
If you have various subfolders (sub-directories) and are willing to use them directly without ending slash sign, here is the tip for you. In this process you will need to use IIS Rewrite. Below is example for understanding and implementation.
ex: Turn http://www.exampledomain.com.pk/abc/ to http://www.exampledomain.com.pk/abc
<
rule
name
=
"Remove 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
>