Possible Duplicate:
Is it possible to make an ASP.NET MVC route based on a subdomain?
My URL looks like
http://Infosys-1234.teradata.com
Can I take the whole URL as a parameter by configuring my path as:
routes.MapRoute(
name: "Default",
url: "{url}",
defaults: new { controller = "App",
action = "GetDetailsById",
// url = UrlParameter.Optional
}
);
If not, suggest me an alternative. I want to take out Infosys-1234 as a parameter from the url.