Mapping subdomains

Jun 30, 2010 at 12:08 AM

Can subdomain mapping be implemented? Here's how some people are doing it:

http://stackoverflow.com/questions/278668/is-it-possible-to-make-an-asp-net-mvc-route-based-on-a-subdomain

http://lukesampson.com/post/303245177/subdomains-for-a-single-application-with-asp-net-mvc

http://blog.maartenballiauw.be/post/2009/05/20/ASPNET-MVC-Domain-Routing.aspx

It'd be nice to be able to directly specify a subdomain or a subdomain parameter through the UrlAttribute, without having to manually reimplement the route mapping.