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

  • Home
  • SEARCH
  • 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 8551797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:16:30+00:00 2026-06-11T14:16:30+00:00

I am using MVC 1.0 in .NET 3.5 Framework. I have a client who

  • 0

I am using MVC 1.0 in .NET 3.5 Framework. I have a client who would like the URL to be displayed as http://www.example.com instead of http://www.example.com/{controller}/{action}/{id}.

  1. The server that the site is hosted on is utilizing IIS 6.
  2. I do not have direct access to this server.

With that in mind, can this be done?

Someone suggested using ISAPI_REWRITE. I’ve found a few examples but none that actually explain correctly what needs to be done.

Alternatively, if this cannot be done throughout the site. Can it just be done on the Home page?

Below is my routing at the moment:

public static void RegisterRoutes(RouteCollection routes)
{
     routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
     // Catch all route
     routes.MapRoute(
     "Default", // Name
     "{lang}/{controller}" + System.Configuration.ConfigurationManager.AppSettings["extension"] + "/{action}/{*values}",  // URL - ["extension"] being .aspx for IIS 6
     new { lang = "EN", controller = "Content", action = "Index" } // Defaults);
 }

Thanks in advance.

  • 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-11T14:16:31+00:00Added an answer on June 11, 2026 at 2:16 pm

    You should write

    public static void RegisterRoutes(RouteCollection routes)
    {
         routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
    
      routes.MapRoute(
             "HomeIndex", // Name
             "",
             new { lang = "EN", controller = "Home", action = "Index" } // Defaults);
    
    
         // Catch all route
         routes.MapRoute(
         "Default", // Name
         "{lang}/{controller}" + System.Configuration.ConfigurationManager.AppSettings["extension"] + "/{action}/{*values}",  // URL - ["extension"] being .aspx for IIS 6
         new { lang = "EN", controller = "Content", action = "Index" } // Defaults);
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am designing a web application using the ASP.net MVC framework. I would like
I am using the asp.net mvc with the Entity Framework. I have a list
I'm building an ASP.NET MVC site using the ADO.NET Entity Framework. I have an
I have an existing website developped using ASP.NET MVC 3 and Entity Framework 4
I have developed a system for a client using ASP.Net MVC 3 and Entity
Following this tutorial (http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/handling-concurrency-with-the-entity-framework-in-an-asp-net-mvc-application), I learned how to save data and do concurrency checks
I was reading Steven Sanderson's book Pro ASP.NET MVC Framework and he suggests using
When using ASP.NET MVC plus Entity Framework, and trying to implement a generic repository
In an ASP.NET MVC 4 application using the .NET 4.5 framework in conjunction with
We are using ASP.net MVC. Which of these is the best DI framework Ninject

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.