Blog

 
Tag: ASP.NET

ASP.NET MVC - Routing of Legacy URLs

9/22/2009
.NET, ASP.NET, C#, MVC
7 Comments

When you convert an existing ASP.NET application to ASP.NET MVC you will sooner or later want to handle legacy URLs.
Imagine an ASP.NET application containing the page "YourPage.aspx".
Now you want to redirect request to that legacy URL to the new MVC Action: "Home/YourPage".

I have looked at several implementations on the internet, but none of them was really simple.
Thus I implemented another solution which is really easy to configure.