Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What Url rewriter do you use for ASP.Net? [closed]

I've looked at several URL rewriters for ASP.Net and IIS and was wondering what everyone else uses, and why.

Here are the ones that I have used or looked at:

  • ThunderMain URLRewriter: used in a previous project, didn't quite have the flexibility/performance we were looking for
  • Ewal UrlMapper: used in a current project, but source seems to be abandoned
  • UrlRewritingNet.UrlRewrite: seems like a decent library but documentation's poor grammar leaves me feeling uneasy
  • UrlRewriter.NET: this is my current fav, has great flexibility, although the extra functions pumped into the replacement regexs changes the standard .Net regex syntax a bit
  • Managed Fusion URL Rewriter: I found this one in a previous question on stack overflow, but haven't tried it out yet, from the example syntax, it doesn't seem to be editable via web.config
like image 865
travis Avatar asked Aug 18 '08 14:08

travis


1 Answers

There's System.Web.Routing that was just released with .NET 3.5.

You can just use Request.RewritePath() in a custom HttpModule

I prefer using an IHttpHandlerFactory implementation and have full control over all incoming URLs and where they're mapped to.

like image 138
Mark Cidade Avatar answered Sep 28 '22 21:09

Mark Cidade