Is it possible to configure Umbraco with the UrlRewriting.config to force a trailing slash on the url, and leave non page url's like images, documents?
Have only found an configuration for removing the trailing slash.
I am new to Umbraco so I am not sure if this will work or if there is a preferred method but you should be able to add the following to the web.config to test:
UrlRewriting and force trailing slash
Is it possible to configure Umbraco with the UrlRewriting.config to force a trailing slash on the url, and leave non page url's like images, documents?
Have only found an configuration for removing the trailing slash.
I am new to Umbraco so I am not sure if this will work or if there is a preferred method but you should be able to add the following to the web.config to test:
<rewrite>
<rules>
<!-- Enforces Trailing Slashes for consistent URLs -->
<rule name="AddTrailingSlashRule1" stopProcessing="true">
<match url="(.*[^/])$"/>
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
</conditions><action type="Redirect" url="{R:1}/"/>
</rule>
</rules>
</rewrite>
Good Luck
is working on a reply...