Yup...routing should be able to handle most scenarios. Still, if you have access to IIS, the ISS rewrite module can do some rewriting before routing kicks in (so would conserve some server resources).
"If I can see further than anyone else, it is only because I am standing on the shoulders of giants."blog: www.heartysoft.com twitter: @ashic
Is URL rewriting no more needed since we can do routing?
URL Rewrting is different than routing,
You can still rewrite the URL before routing engine comes into action.
one simple example is here
http://forums.asp.net/p/1547663/3788358.aspx
"And whoever is removed away from the Fire and admitted to Paradise, he indeed is successful." (The Holy Quran)
Excellent Windows VPS Hosting Imran Baloch MVP, MVB, MCP, MCTS, MCPD
Another scenario that URL Rewriting solves nicely is that of multiple subdomains being routed to a single machine. For example, the IIS URL Rewriting module can be used to have your browser display http://app1.example.com/ or http://app2.example.com/, and
the server will treat it as a request for http://content.example.com/app1/ or http://content.example.com/app2/. This is much, much easier to pull off with IIS URL Rewriting than with ASP.NET Routing.
Marked as answer by hell666 on May 04, 2010 10:34 PM
hell666
Member
38 Points
65 Posts
Is URL rewriting no more needed?
May 04, 2010 12:23 AM|LINK
Is URL rewriting no more needed since we can do routing?
HeartattacK
All-Star
55262 Points
5917 Posts
Moderator
MVP
Re: Is URL rewriting no more needed?
May 04, 2010 12:49 AM|LINK
Yup...routing should be able to handle most scenarios. Still, if you have access to IIS, the ISS rewrite module can do some rewriting before routing kicks in (so would conserve some server resources).
blog: www.heartysoft.com
twitter: @ashic
imran_ku07
All-Star
45815 Points
7698 Posts
MVP
Re: Is URL rewriting no more needed?
May 04, 2010 02:01 AM|LINK
URL Rewrting is different than routing,
You can still rewrite the URL before routing engine comes into action.
one simple example is here
http://forums.asp.net/p/1547663/3788358.aspx
Excellent Windows VPS Hosting
Imran Baloch MVP, MVB, MCP, MCTS, MCPD
levib
Star
7702 Points
1099 Posts
Microsoft
Re: Is URL rewriting no more needed?
May 04, 2010 02:16 AM|LINK
Another scenario that URL Rewriting solves nicely is that of multiple subdomains being routed to a single machine. For example, the IIS URL Rewriting module can be used to have your browser display http://app1.example.com/ or http://app2.example.com/, and the server will treat it as a request for http://content.example.com/app1/ or http://content.example.com/app2/. This is much, much easier to pull off with IIS URL Rewriting than with ASP.NET Routing.