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?
From stackoverflow
Kyle B.
-
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?
From KevDog -
Answered already so I'm just going to direct you to those:
Here: http://stackoverflow.com/questions/33861/aspnet-mvc-routing-basics-root-route
Here: http://stackoverflow.com/questions/15470/how-do-i-get-rid-of-home-in-aspnet-mvcFrom Simucal
0 comments:
Post a Comment