ASP. NET urlrewriting solution data set

Source: Internet
Author: User
See the following solution Reference documents:
    • Tip/TRICK: URL rewriting with ASP. NET by Scott Guthrie-four solutions are discussed

      1. Use the request. pathinfo parameter instead of querystrings
      2. Use an httpmodule to implement URL rewriting;
      3. Use httpmodule on IIS 7 to implement extension-less URL rewriting
      4. Use isapirewrite on IIS 5 and IIS 6 to implement extension-less URL rewriting
      5. We also discussed how to implement URL rewriting to handle ASP. NET PostBack.
  • URL rewriting by Salman (csharpfriends)-a simple implementation scheme of URL rewriting by rewriting the application_beginrequest () method in global. asax.
  • Search engine friendly URLs using ASP. NET (C #. Net) by maziar aflatoun (the UK web design company)-catch up with the difference, but the regular expression is used to match the URL
  • Rewrite. Net-a URL rewriting engine for. Net by Robert Chartier (15seconds.com). The implementation steps are as follows:
    • Create an httpmodue for processing Web requests and implementing URL rewriting
    • Add a handler in Web. config.
    • Add a section in Web. config to process URL ing rules.
    • Define a set of URL ing rules
    • Write a class or some classes to operate on the adding rules of this URL ing rule, so that users can easily use
    • Add in httpmoduleCodeUsed to dynamically load the ing rules required in Web. config
  • URL rewriting in ASP. NET by Scott Mitchell (msdn)-discusses how to implement URL rewriting using the HTTP module and explains how to handle PostBack.
  • URL rewriting with ASP. NET by Richard birkby (codeproject)-demonstrate how to upgrade a traditional ASP Website to ASP. ent and retain the previous page Link while upgrading. The steps are as follows:
    • Create a section in Web. config to define URL ing rules
    • According to the URL rewriting logic, write the class for processing the configuration in this section.
    • Processing application_beginrequest () method in global. asax
    • Compile this code and install the compiled DLL file to Global Assembly Cache (GAC)
    • Configure IIS to map the. aspx file to ASP. net isapi extension

    URL rewriting using ihttpmodule vs ISAPI rewrite

     

       

    Other related resources:
      • Making sense of ASP. NET paths by Rick Strahl
      • Fixing Microsoft's bugs: URL rewriting by Jesse ezell
      • Regular Expressions with. Net by Dan appleman and Daniel appleman
      • Urlrewritingnet. urlrewrite-an open source component which allows you certainly to rewrite URLs with ASP. NET 2.0.
      • Open source URL rewriter for. Net/IIS/ASP. NET

    Address: http://www.aspnetworld.com/articles/2004011901.aspx

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.