Routing to a fixed URL in ASP.NET MVC

In the global.asax file, you can simply do this:

void Application_Start(object sender, EventArgs e)
{
System.Web.Routing.RouteTable.Routes.MapPageRoute("YourReRoute", "example/action", "www.facebook.com");
}

Leave a Comment