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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:16:54+00:00 2026-06-02T10:16:54+00:00

I have a bigger project with about 9 controllers. Now at the end of

  • 0

I have a bigger project with about 9 controllers. Now at the end of the project the url requeirement change. How to deal best with this situation – renaming the controllers seems just too cumbersome … I need to change all links in servercode and javascript

  • 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-02T10:17:01+00:00Added an answer on June 2, 2026 at 10:17 am

    Your problem can be solved by changing your existing routes. In your global.asax you’ll find a code fragment like this

    routes.MapRoute(
                "Default", // Route name
                "{controller}/{action}/{id}", // URL with parameters
                new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
            );
    

    That maps an URL ‘/Controller/Action/Id’ to Controller, Action and Id. You can provide routes like this

        routes.MapRoute(
                "RefactoredRoute", // Route name
                "SomeChangedURLBase/{action}/{id}", // URL with parameters
                new { controller = "Controller", action = "Index", id = UrlParameter.Optional } // Parameter defaults
            );
    

    to route requests to /SomeChangedURLBase… to be handled by Controller.

    Be aware that these routes should be registered before the default route to avoid that links generated in views point to the default route and generate the old URL.

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

Sidebar

Related Questions

I have a custom codechecker in python, Also there is a bigger project running
I have an installer which installs about 40 files and two directories. This installer
i am new in project for company that have bigger enterprise/accounting system based on
I have two templates for my HTML email: one for bigger screens, and one
Is it normal to have tests that are way bigger than the actual code
I have a few issues with the following php functions (part of a bigger
I have a file with the structure like so: http://gamedev.pastebin.com/8iESYTVY but it's much bigger
I have my own custom UISegmentedControl subclass. It's buttons are bigger than the standard
Have a look at this picture alt text http://www.abbeylegal.com/downloads/2009-04-01/web%20part%20top%20line.jpg Does anyone know what css
Have someone tried out DeCAL in Delphi 2009? I'm thinking about upgrading from 2007,

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.