Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9145355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:29:36+00:00 2026-06-17T10:29:36+00:00

I am converting an old ASP.NET WebForms app to ASP.NET MVC 4. Everything is

  • 0

I am converting an old ASP.NET WebForms app to ASP.NET MVC 4. Everything is fine, except that I have a need to maintain backward compatibility with a specific URL. I found this great post on using UrlRewrite, but sadly that isn’t something I can count on (this app gets deployed to lots of servers). At the bottom, he mentions using routing if you only have a small set of URLs to deal with, but doesn’t provide any example.

Since I only have one url to deal with, I think routing would be the simple approach, but I’ve never dealt with anything except the default route /Controller/Action/{id} so I am looking for a solution that

  1. Has no external dependencies
  2. Will work on old crappy browsers
  3. Doesn’t matter if my app knows about this old url or not

The Old URI

https://www.mysite.com/default.aspx?parm1=p1&parm2=p2&etc=soforth

The New URI

https://www.mysite.com/Home/Index/?parm1=p1&parm2=p2&etc=soforth

Background: this app gets deployed to lots of servers at different locations. There are other apps (that I cannot update) that display the “Old URI” in a web-browser control, so I need them to continue to work after the app is updated to asp.net mvc.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T10:29:37+00:00Added an answer on June 17, 2026 at 10:29 am

    Something like following should work (untested, may need to make this route to be one of the first):

    routes.MapRoute(
       "legacyDefaultPage",
       "default.aspx",
       new {Controller = "Legacy", Action="Default"});
    
    class LegacyController {
      ActionResult Default (string param1,...){}
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am converting an old html based website to ASP.NET, so that we can
Currently converting an old asp.net web forms page into a asp.net mvc version, and
I have a ASP.NET MVC 4 project - CodeFirst with Entity Framework - that
Converting an old program into an ASP.NET c# site. I have a table full
I am currently converting a very old, but working classic ASP site to ASP.Net.
I have taken on the task of converting a very old classic ASP/VBScript/Access web
I am converting an old script from ASP to ASP.NET and would like some
I am working on converting an old app written in powerbuilder to a .NET
I'm converting an old classic asp website to asp.net. The application is basically an
i'm converting in PHP5 a quite old ASP project that was using a lot

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.