views:

34

answers:

1

We have recently shifted to asp.net mvc, but we still need to support some legacy urls. What is the best way to handle this situation. Is it Application_PreRequestHandlerExecute() event in global.asax, that I need to use or is there any better way?

+1  A: 

You can use the URL Rewrite module for IIS7. Scott Hanselman has a good post on using URL rewrite to to handle legacy URLs here.

Another option, I believe you can simply add a route that matches your old url syntax.

Nate Bross
Thanks Nate, but the problem is we have too many old urls to supportand our web configs are auto generated. Basically our application is a templated website platform and we support nearly 70 websites on it.Is there any other way to get this working?
kishore