Kyle B.
Kyle B.

Reputation: 5787

ASP.net MVC HomeController URL

By default the MVC Preview 5 web project comes with a HomeController.vb class. This sets the web URL to http://www.mywebsite.com/home/ by default. If I just wanted this to be http://www.mywebsite.com/ by default, how would I accomplish that?

Upvotes: 1

Views: 5041

Answers (2)

mmcdole
mmcdole

Reputation: 92805

Answered already so I'm just going to direct you to How do I get rid of Home in ASP.Net MVC?.

Users with 10k+ rep can also refer to https://stackoverflow.com/questions/33861/aspnet-mvc-routing-basics-root-route (deleted)

Upvotes: 4

KevDog
KevDog

Reputation: 5803

I'm not sure I understand your question, if what you want is to go to http://www.mywebsite.com/ and not have it be trailed by /home, that is the behavior you will get.

Is there something else you were looking for?

Upvotes: 1

Related Questions