I have a MVC 3 Razor app and I need to deploy it on http://www.mydomain.com.
The trouble is that that, when I hit http://www.mydomain.com it gives a 404 Error. I need http://www.mydomain.com/Home view loaded by default, I would like to avoid using a redirect method as it is not SEO friendly…
As for the default setting, you can use the
RegisterRoutes(RouteCollection routes)method that is available inGlobal.asax.csto mark the default controller and its corresponding action method. Regarding hitting http://www.mydomain.com and getting a 404 error, I need more information. if you are on windows and working on a developer machine, did you add the entry to hosts file located in