What is the best method to achieve dynamic URL Rewriting in ASP.Net?

后端 未结 5 1752
时光取名叫无心
时光取名叫无心 2021-02-06 18:41

I\'m currently using Intelligencia.UrlRewriter does anyone have better suggestions?

相关标签:
5条回答
  • 2021-02-06 19:05

    System.Web.Routing is part of .NET 3.5 SP1 and you can use it both for your ASP.NET WebForm-application and your MVC-application.

    The official ASP.NET site has a good QuickStart Tutorial on System.Web.Routing.

    0 讨论(0)
  • 2021-02-06 19:16

    An alternative approach to consider is URL routing. This is not the same as rewriting (rewriting involves changing one URL to another whilst routing involves directly mapping dynamic URLs to different parts of your application) and is not so easy to implement for an existing project, but if you're starting a project from scratch you might find this a better approach depending on your exact requirements. On the other hand, it may be no use to you at all, but at least you can make an informed decision!

    0 讨论(0)
  • 2021-02-06 19:20

    IIS 7 comes with a rewrite module

    You can find further links in this wikipedia article

    0 讨论(0)
  • 2021-02-06 19:22

    ISAPI_Rewrite is also a good generic solution - works not only with ASP.NET but with any other system.

    0 讨论(0)
  • 2021-02-06 19:22

    Following the suggestion made by Seb Nilsson I looked a bit all over google and found these nice examples:

    • aspnet routing goodbye url rewriting
    • using asp.net routing independent of mvc
    • using asp.net routing independent of mvc passing-parameters

    When working with IIS 6 it is important to have a look at this Blog

    0 讨论(0)
提交回复
热议问题