I have two areas:
mydomain.com as well as mydomain.fr
Both of them correspond to the same IP address.
I want users to enter mydomain.com to view page A (Controller = "Application" Action = "A") and users type mydomain.fr to view page B (Controller = "ApplicationFR" Action = "B")
I am using ASP.NET MVC 3 and the default route is displayed on page A.
How can i achieve this?
EDIT:
I tried using the provided example, but it doesn't seem to work. The correct way to register a custom route?
public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.Add(new ExampleRoute()); routes.MapRoute( "Default",
iis-7 asp.net-mvc-3 asp.net-mvc-routing
alexandrekow
source share