Anyone know if it's possible to move the HomeController and Home related views into the Areas directory?
I'm trying to keep my root directory nice and clean and avoid having the ~/Views and ~/Controllers directories if I can. Furthermore, I can see it causing some confusion by having to explain that those root folders are for homepage stuff only and everything else lives in the Areas folder. It just doesn't fit with my sense of organization, I guess.
The closest I've come is using the following for my Home area route registration:
context.MapRoute(
"Home_default",
"Home/{action}/{id}",
new { controller="Home", action = "index", id = UrlParameter.Optional }
);
... But this doesn't catch just plain "www.mydomain.com/". For that I need to tell my "catch all" route in the Global.asax to somehow send that request over to my Home area. Simply adding area="Home" to the route data didn't work. A request for "/" is still looking for the HomeController and Views in my root directory.
Any ideas?