Remove Traiing Foward Slash using UrlRewritingNet
问题 i'm doing some work on a legacy asp.net and umbraco site. It's using UrlRewritingNet to set up rules for url manipulation. I'd like to create a rule in the UrlRewritingNet file to remove the trailing slash from the url. eg. http://www.test.com/index.aspx/ to http://www.test.com/index.aspx Can you please help. 回答1: <add name="noendslash" virtualUrl="^(.*)/$" rewriteUrlParameter="IncludeQueryStringForRewrite" redirect="Application" destinationUrl="~$1" ignoreCase="true" /> 回答2: In the later