what is the best way for URL rewriting in asp.net RRS feed

  • Question

  • User-1691357140 posted

    what is the best way for URL rewriting in asp.net 

    1) By C# code 

    2) By IIS

    3) Http module

    Thursday, April 3, 2014 12:25 AM


  • User1508394307 posted

    It depends on requirements and server version.

    If you have IIS (IIS7+) then you can use its add-on module for URL Rewrite and then you will not need to change the code.

    The rewrite rules are stored in the web.config file, and you can easily distribute it to all the servers.


    Using c# code or http modules could be useful if you have old IIS or you have rewrite rules with specific logic which cannot be described in web.config or must be hidden from web.config.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, April 4, 2014 3:26 AM