Avoid 404 errors while navigating to a url with trailing slash.

Topics: Customizing Orchard, Troubleshooting, Writing modules
Oct 20, 2013 at 12:12 PM
How to create a routing rule so that all urls with a trailing slash are redirected to a url without a trailing slash. Currently the urls are breaking when a trailing is present and they are producing a 404 error. Any help would really be appreciated.

I am working in a module and I already have a class which implements Orchard.Mvc.Routes.IRouteProvider but i do not know how to go forward.
Coordinator
Oct 26, 2013 at 8:59 AM
Just use regular IIS url rewrites in web.config.