Routing classic asp through an MVC application

Posted by Matthias on Stack Overflow See other posts from Stack Overflow or by Matthias
Published on 2010-04-19T09:58:46Z Indexed on 2010/04/19 15:23 UTC
Read the original article Hit count: 358

Filed under:
|
|
|
|

We are starting to convert a large classic asp application into MVC (using C#). An additional requirement is, that all classic routes get "translated" to MVC ones ('mydomain.com/productdetail.asp?id=13' should become 'mydomain.com/products/13') even before we start writing the first controller or view. So basically, we want to use the routing from MVC but have the classic asp handle the response.

An these are my questions:

  1. How to use the new nice urls but have the classic asp handle the construction of the html result?
  2. Within the classic asp page, the new MVC url pattern should be used for links. What is the best way of translating the old urls to the new ones and make the accessible within the classic asp site (using COM I guess).
  3. When an old/classic url is requested, how would I correctly handle that request so that browsers/searchengines would understand that the page has moved to the new url?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about mvc

Related posts about asp-classic