Is it possible to maintain the url while redirecting to a classic asp page from a controller?
Posted
by Matthias
on Stack Overflow
See other posts from Stack Overflow
or by Matthias
Published on 2010-04-20T08:05:23Z
Indexed on
2010/04/20
8:13 UTC
Read the original article
Hit count: 238
While migrating a site from a classic asp to MVC, I'm having the problem that not all controllers are implemented yet. For those which are not implemented, I'd like to serve the classic asp page (say /product.asp?id=123) while maintaining the nice url /product/123. To accomplish this I implemented a dummy ProductController which returns a RedirectResult to the classic asp url. But that changes the url in the browsers navigation bar. Requirement has it, that the urls should always be a clean (mvc) one, eventhough the page has not yet been fully migrated.
If this can't be done using a dummy controller, what would be an alternative option to solve this problem?
Thanks in advance!
© Stack Overflow or respective owner