views:

706

answers:

4

I know this site is written using ASP.Net MVC and I do not see "/Home" in the url. This proves to me that it can be done. What special route and do I need?

+12  A: 

Just change "Home" to an empty string.

routes.MapRoute(
    "Home",
    "",
    new { action = Index, controller = Home }
);
Nick Berardi
+7  A: 

If you're running on IIS 7, you can simply delete the Default.aspx file that comes with ASP.NET MVC (assuming you're running on Preview 3 or higher). That file was needed due to an issue with Cassini that was fixed in .NET 3.5 SP1. For more details check out:

http://haacked.com/archive/2008/04/10/upcoming-changes-in-routing.aspx and http://haacked.com/archive/2008/05/12/sp1-beta-and-its-effect-on-mvc.aspx

Haacked
+1  A: 

I am running on Preview 4 and IIS7. Thanks for the help. With all of the technologies emerging from Microsoft these days, it is a full time job just trying to keep up.

pelleg
A: 

@pelleg I totally understand. It's my full-time job to put new technology out there. ;)

Haacked