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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:21:02+00:00 2026-05-27T04:21:02+00:00

I have already managed to get friendly urls working with my cms; however, what

  • 0

I have already managed to get friendly urls working with my cms; however, what i want to know is: with asp.net 4.0 routes options, how do i get a root leaving routing? When user types in http://www.mysite.com/page_name, which is aboutus, it goes to the page cms.aspx but leaves the other routes intact:

        routes.Clear();
        // Register a route for Products/{ProductName}
        routes.MapPageRoute(
            "View Product",             // Route name
            "Products/{ProductName}",   // Route URL
            "~/products.aspx"        // Web page to handle route
        );


        // Register a route for Products/{ProductName}
        routes.MapPageRoute(
            "ShoppingCart",       // Route name
            "{ShoppingCart}",   // Route URL
            "~/Basket.aspx"        // Web page to handle route
        );


        // Register a route for Products/{ProductName}
        routes.MapPageRoute(
            "ShoppingCart",       // Route name
            "{ShoppingCart}",   // Route URL
            "~/Basket.aspx"        // Web page to handle route
        );

  // --->> How do i do this

  // Register a route for url/{pagename}
        routes.MapPageRoute(
            "cms",       // Route name
            "{}",   // Route URL
            "~/cms.aspx"        // Web page to handle route
        );
  • 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-27T04:21:02+00:00Added an answer on May 27, 2026 at 4:21 am

    I think you’re looking for a root controller. This will allow you to eliminate the controller name and just have:
    {url}/action
    It sounds like your intention is to clean up the URL’s?

    See: Having trouble with a simple MVC route

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

Sidebar

Related Questions

I have managed to get a ContactsContact.Directory working for the most part (http://stackoverflow.com/questions/7436969/contactscontract-directory-how-do-i-return-a-photo), and
I have already search for some time over the net on how to create
Im having a problem, I have managed to get some code to make a
I've already managed to get the devicetoken from APNs. It's type of NSData. So
I know this is a pretty specific question but I managed to get some
I have managed to get my first python script to work which downloads a
i've managed to get a simple animation working so when I roll over my
I have a problem accessing a REST service with the RestTemplate. I've already managed
I have a visual studio solution with an ASP.NET 3.5 web application (WCF host)
If Safari/Firefox have already downloaded files then they keep a download manager window open.

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.