I just want to redirect a URL that is not in the MVC project. how
http://mysite.com/Parents/default.aspx?ID=xxx
TO
http://mysite.com/accounts/login
with identifier
I think something like this will work.
routes.MapRoute( name: "Default", url: "Parents/default.aspx?ID={id}", defaults: new { controller = "Accounts", action = "Login", id = UrlParameter.Optional } );
If you want to redirect all .aspx pages to redirect to "accounts / login", follow these steps:
routes.MapRoute( "Page", "{name}.aspx", new { controller = "Accounts", action = "Login", id = UrlParameter.Optional } );
Source: https://habr.com/ru/post/1499630/More articles:Bulk export attachments from bugzilla - bug-reportingZebra (ZPL) II programming language using ^ FB or ^ TB truncates text at specific lengths - truncateFailed to connect to remote EC2-hbase cluster from EMR cluster cluster - hbaseImplementation of the Hoi Chamos algorithm using C # - c #Implementing brute force algorithm to detect a self-intersecting polygon - c #How the threadlocal variable differs from the method level variable - javahttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1499632/how-to-initialize-a-bitset-type-all-bits-to-1&usg=ALkJrhis-YtlXTU8yiiRt0F4tMr2SOgz6wfor / typed / racquet annotation list - racketTool to use Spring Roo online? - spring-roohttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1499635/dms-document-management-system-file-repository-file-manager-under-java-ee&usg=ALkJrhgbPiyyZf76lkPutFEG6tT10yjjOgAll Articles