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

2019-03-12 16:52发布

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

11条回答
一纸荒年 Trace。
2楼-- · 2019-03-12 17:35

I've had a good experience with Ionic's ISAPI Rewrite Filter which is very similar to ISAPI_Rewrite, except free. Both are modeled after mod_rewrite and are ISAPI filters, so you can't manage them in code as you have to set them up in IIS.

查看更多
可以哭但决不认输i
3楼-- · 2019-03-12 17:36

If I were starting a new web project now I'd be looking at using MVC from scratch. That uses re-written URLs as standard.

查看更多
Juvenile、少年°
4楼-- · 2019-03-12 17:42

I used .NET URL Rewriter and Reverse Proxy with great success. It's almost on par with mod_rewrite and uses almost all of the same syntax's. The owner of the project is extremely helpful and friendly and the product works great. This gem provides both Rewriting and Proxy functionality, which many solutions don't offer. IMO, worth a look.

查看更多
Lonely孤独者°
5楼-- · 2019-03-12 17:44

+1 for UrlRewritingNet.UrlRewrite too but why do I always need to end my URL with .aspx? I think it should be improved better regular expression partern.

Why do I always have to end with aspx in virtualURL localhost/Products/Beverages.aspx", "localhost/Products/Condiments.aspx". I just want to type localhost/Products/Beverages", "localhost/Products/Condiments" which look like MVC route.

This one look good but it is not working for my site. I still can't figure it out.

查看更多
姐就是有狂的资本
6楼-- · 2019-03-12 17:44

I've used UrlRewriting.NET before on a very high-traffic site - it worked great for us. I believe the developers are German, so the English documentation is probably not as good as it could be. I'd highly recommend it.

查看更多
登录 后发表回答