locked
what is best choice for url rewriting in asp.net 3.5 RRS feed

  • Question

  • User-1963923283 posted

    Hi Experts,


    i have a question regarding  which is best choice to url re writing  with following requriments


    1.ASP.NEt 3.5 (or later version

    2.IIS 5/6/7

    3.this site is commnitity site


    Choices

    1.UrlRewriter.net

    2.System.Web.Routing?


    Please suggest idea and what are advatanges and disadvantage to both.


    thank you

    Tuesday, December 22, 2009 11:02 PM

Answers

  • User78336405 posted

    Hi,

  • URL rewriting is used to manipulate URL paths before the request is handled by the Web server. The URL-rewriting module does not know anything about what handler will eventually process the rewritten URL. In addition, the actual request handler might not know that the URL has been rewritten.
  • ASP.NET routing is used to dispatch a request to a handler based on the requested URL path. As opposed to URL rewriting, the routing component knows about handlers and selects the handler that should generate a response for the requested URL. You can think of ASP.NET routing as an advanced handler-mapping mechanism.

     For more details, please refer:http://learn.iis.net/page.aspx/496/iis-url-rewriting-and-aspnet-routing/ .

  • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, December 29, 2009 12:34 AM

All replies

  • User-1963923283 posted

    Hi Experts,

    No one have idea about this?



    Wednesday, December 23, 2009 5:55 AM
  • User94749686 posted

    hi.

    best way is to Inject Custom "HttpModule" in Request path. and register it in web.config.

    this is sample implementation.


    class RewriteModule : IHttpModule

    {

    //.....Conditions

       Context.RewritePath(newPath);

    //.....

    }


    thanks.

    Wednesday, December 23, 2009 6:11 AM
  • User-786643629 posted

    ------------------------------------------------------

    which is best choice to url re writing?

    1.ASP.NEt 3.5 (or later version

    2.IIS 5/6/7

    3.this site is commnitity site

    ------------------------------------------------------

    Hi ravesoft

    The same thing was in my brain for last few days

    Finally I have decided to go through Routing.

    I am still implementing these thing with my project.

    But its clear to me now I am on the way to get this thing

    All The Best   

    Wednesday, December 23, 2009 8:48 AM
  • User-1963923283 posted

    hi

    when you have done succesfully, please share with us


    thank youy

    Wednesday, December 23, 2009 12:00 PM
  • User-1963923283 posted

    Hi Experts,


    any more ideas about my questions?


    thank you

    Sunday, December 27, 2009 9:39 PM
  • User940174373 posted

    Well since ASP.NET 3.5 SP1 web form apps can now do URL rewritting like ASP.NET MVC, so personally I'd use what's built-in.


    Sunday, December 27, 2009 11:04 PM
  • User-1963923283 posted

    Hi

    Thank you, i have implmented url re writing usign rewritepath, after i see this url routing i have confusion which one is best.can you give me exactlly which one is less security risk and work with good performance.

    Normal url rewriting or url routing?


    thank you once agian.


    Sunday, December 27, 2009 11:15 PM
  • User78336405 posted

    Hi,

    URL rewriting can be implemented either with ISAPI filters at the IIS Web server level, or with either HTTP modules or HTTP handlers at the ASP.NET level. However, numerous third-party ISAPI filters available for URL rewriting, such as:

    It is up to your scenario which one you decide.

    For more details, please refer:http://msdn.microsoft.com/en-us/library/ms972974.aspx .

    Monday, December 28, 2009 2:29 AM
  • User-1963923283 posted

    Hi


    Thank you for your reply, but i have question  in my prevoiuse post


    "

    Hi

    Thank you, i have implmented url re writing usign rewritepath, after i see this url routing i have confusion which one is best.can you give me exactlly which one is less security risk and work with good performance.

    Normal url rewriting or url routing?

     

    thank you once agian.

    "


    thank you


    Monday, December 28, 2009 2:41 AM
  • User78336405 posted

    Hi,

    I think maybe URL Routing will be better. 

    Monday, December 28, 2009 3:25 AM
  • User-1963923283 posted

    Hi

    Thank you for your reply , do you have any strong points to your suggestions

    thank you



    Monday, December 28, 2009 4:44 AM
  • User78336405 posted

    Hi,

  • URL rewriting is used to manipulate URL paths before the request is handled by the Web server. The URL-rewriting module does not know anything about what handler will eventually process the rewritten URL. In addition, the actual request handler might not know that the URL has been rewritten.
  • ASP.NET routing is used to dispatch a request to a handler based on the requested URL path. As opposed to URL rewriting, the routing component knows about handlers and selects the handler that should generate a response for the requested URL. You can think of ASP.NET routing as an advanced handler-mapping mechanism.

     For more details, please refer:http://learn.iis.net/page.aspx/496/iis-url-rewriting-and-aspnet-routing/ .

  • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, December 29, 2009 12:34 AM