Trailing slash

Topics: Core, Customizing Orchard, General, Troubleshooting
Feb 27, 2012 at 10:56 PM
Edited Feb 27, 2012 at 10:56 PM

I have a site that has a "Products" page which contains a list of "Product" pages.

This URL works: http://www.mvpind.com /products

This, URL doesn't: http://www.mvpind.com/products/

Q: What's the best way to remove all trailing slashes from all request URL's so that the page displays regardless?

Feb 27, 2012 at 10:59 PM

This question has been discussed here: http://orchard.codeplex.com/discussions/285397

Feb 28, 2012 at 1:44 AM
TheMonarch wrote:

This question has been discussed here: http://orchard.codeplex.com/discussions/285397


Thanks for the link. I've just added the rewrite module and tested locally with the following rule and it all seems to work nicely:

RewriteRule ^(.+)/$ $1 [L]

Uploading to Azure now :)