Last post Apr 04, 2014 03:26 AM by smirnov
Apr 03, 2014 12:25 AM|KAPILDEVSHARMA.CS|LINK
what is the best way for URL rewriting in asp.net
1) By C# code
2) By IIS
3) Http module
Apr 04, 2014 03:26 AM|smirnov|LINK
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.