DevNotes \ Trailing Slash in URL

I like trailing slashes. There can be pros and cons of them, but I just think they make URLs look nicer. So here are the redirect rules.

IIS with ISAPI redirect:

RewriteRule ^/([^.?]+[^.?/])$ /$1/ [R=301]

IIS with Intelligencia.UrlRewriter:

<redirect url="^/([^.?]+[^.?/])$" to="$1/" />

© Alexey Busygin, 2008–2010. alexey@busygin.com