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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:28:15+00:00 2026-05-29T22:28:15+00:00

For a more user-friendly environment, I wish to have the page extensions removed and

  • 0

For a more user-friendly environment, I wish to have the page extensions removed and query strings to not be visible. For example, from http://www.example.com/news.aspx?id=123 I want it to be http://www.example.com/news/123. How can I obtain it?

I also wanted to take opportunity of this question to put two other questions:

  • When using the URL rewriting, do I have to specify a rule for each page?
  • Which is better to use for URL rewriting in ASP.NET – the .htaccess file or the setting of rules in the web.config?

Thanks.

  • 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-29T22:28:15+00:00Added an answer on May 29, 2026 at 10:28 pm

    You can use the URL Routing classes that were introduced in ASP.Net MVC for this purpose. These classes can be used in any .Net web application and are not limited to the MVC release.

    With the “System.Web.Routing” namespace in place you can define routes as rules such as;

    routes.MapPageRoute(
          "News Category",   // Route name
          "News/{*ID}",      // Route URL
          "~/News.aspx"      // Web page to handle route
       );
    

    You register these “routes” in your global.asax application startup event in the same manners as you would in MVC.

    This would allow http://www.domain.com/news/123 to be interpreted in your web application in the same manner as http://www.domain.com/news.aspx?id=123.

    Here’s a recent article on using the MVC routing namespace in a traditional aspx application.

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

Sidebar

Related Questions

I'm working on building a more user-friendly frontend access page in Wordpress for a
I have complex form that I want to make more user friendly. It consists
In certain areas of my application, it is more user friendly to have custom
hello, how can i set cookies like 'last_visit' if the user have more than
I have a horizontal CSS menu. The problem is when the user creates more
it's possible to have one entity object (class, e.g. User) for more entity models
When the user clicks add more options, a from is created with javascript document.getElementById('addmore').innerHTML
I have a user control with a More Info link. When clicking that link,
I have implemented endless scrolling to my website user account area and before more
I am trying to add more user friendly descriptions for multiple enum members in

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.