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 6977621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:38:57+00:00 2026-05-27T17:38:57+00:00

I have a confusing question. I have to convert an ASP.NET Web application in

  • 0

I have a confusing question. I have to convert an ASP.NET Web application in ASP.NET MVC. Everything is going fine but problem is that, site owner wants that urls of pages should not be change means if any page have a url http://abc.com/a.aspx then its should be as it.
Now I already told my team members that it is not possible to broadcast any extension like .aspx extension in ASP.NET MVC, but he told me to search it.
As I had did lot of search but did not find any way to perform it.
Is it possible that we can broadcast .aspx extension in URL in ASP.NET MVC2 or 3 by some routing configuration so that page urls did not change.

Any help will be appreciated.

  • 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-05-27T17:38:58+00:00Added an answer on May 27, 2026 at 5:38 pm

    You can do this a number of ways. The easiest might be to use IIS Url Rewriting to rewrite any .aspx file to its equivelent MVC route.

    A different way would be to simply create Routes that match a .aspx extension and route them to your Controller/Action. ie:

    routes.MapRoute("Default", "{controller}/{action}.aspx",  
       new { controller = "Home", action = "Index" });
    

    The drawback here is that you can’t use friendly parameters, well you could but it would probably break an existing URL. they’d look like blah.com/blah/blah.aspx/blah. Of course querystring parameters still work.

    A third way would be to simply setup IIS to redirect any extension with .aspx to its equivelent MVC route.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an SQL question which may be basic to some but is confusing
I'm having a really confusing problem. I have a UIWebView that is contained within
I have a normal asp.net combobox on my web page. The current version is
Sorry if this question is confusing. I have inherited a site that is already
Sorry if the question sounds confusing. My problem is that I am using the
I have a very confusing problem, and I am able to solve it, but
I am a beginner of python and have a question, very confusing for me.
This is confusing me, so this question will probably be confusing. I have a
I have a confusing problem in my code, in which one object gets initialized
I'm going to give this another try because my last question might have been

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.