Add Trailing Slash in Umbraco - Umbraco

Add Trailing Slash in Umbraco - Umbraco

code snippet

umbraco
<rule name="AddTrailingSlash" stopProcessing="true">
          <match url="(.*[^/])$" />
          <conditions>
            <add input="{HTTP_HOST}" pattern="^www.yourdomain.com$" />
            <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" />
          </conditions>
          <action type="Redirect" url="{R:1}/" />
        </rule>

"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.