I'm migrating a ASP classic site to ASP.net MVC.
Is there a way to redirect the old traffic to the new one?
Example: how to go from:
www.mydomain.com/viewpage.asp?pageid=1234
to:
www.mydomain.com/page/1234
asp-classicasp.net-mvcrouting
I'm migrating a ASP classic site to ASP.net MVC.
Is there a way to redirect the old traffic to the new one?
Example: how to go from:
www.mydomain.com/viewpage.asp?pageid=1234
to:
www.mydomain.com/page/1234
Best Answer
Researching the issue I found that the best way was to:
I ended up using #2 because it more simple for my project
You could use
Context.RewritePath
too, but it does not change the url in the client browser.