asp.net mvc - How to keep the old asp path in MVC web deployment -


i have old web page extension of .asp files web links. deploying mvc4 project, old path lost. because people used web more 10 years, want them able access old link "http://www.mysite.com/about.asp" did before, won't work in mvc web site. mvc has use controller/action/id path not want old links, direct in home directory.

i want new mvc page have links old asp pages, try few methods found in google, none of them works.

i tried described here:

routes.maproute( "dosomething", "{action}.asp", new { controller = "asp" } );

    public actionresult projectinfo_networksecurity()     {         return view();     } 

when put

http://localhost:9014/projectinfo_networksecurity.asp  

to access, reported error "this type of page not served.".

then removed ".asp",

`http://localhost:9014/projectinfo_networksecurity 

and changed method follows:

    public actionresult projectinfo_networksecurity()     {         return view("~/" + "projectinfo_networksecurity.asp");     } 

it reported error "the resource cannot found.". in either case, never reached code in controller.

thanks help!

this has been discussed @ in posts here , here.

can share code can it?


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -