I have a MVC Web Application that runs on www.domain.com and I need to configure a different URL binding for another domain www.domain2.com for the
www.domain.com
www.domain2.com
in the default action of the application make sure that the url is the one of the second domain, then return the method that needs. something like:
public ActionResult Index() { if (Request.Url.Host.Equals("domain2")) return AnotherAction(); }