Add Trailing Slash in Umbraco - Umbraco

Add Trailing Slash in Umbraco - Umbraco

code snippet

<rule name="AddTrailingSlash" stopProcessing="true">
          <match url="(.*[^/])$" />
            <add input="{HTTP_HOST}" pattern="^$" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
            <add input="{URL}" pattern="/umbraco_client" negate="true" />
            <add input="{URL}" pattern="/umbraco" negate="true" />
            <add input="{URL}" pattern="/install" negate="true" />
            <add input="{URL}" pattern=".axd" negate="true" />
          <action type="Redirect" url="{R:1}/" />

"Perfection is not attainable, but if we chase perfection we can catch excellence"

Contact me!

Have questions? Feel free to use the form or send me an email with any questions.

I will be responsive to your requests and your questions.