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");
}
More Related Contents:
- Can the ViewBag name be the same as the Model property name in a DropDownList?
- How to make custom error pages work in ASP.NET MVC 4
- ASP.NET MVC how to disable automatic caching option?
- ASP.NET Bundles how to disable minification
- How to “warm-up” Entity Framework? When does it get “cold”?
- Could not load file or assembly ‘System.Net.Http, Version=2.0.0.0 in MVC4 Web API
- How do I render a partial form element using AJAX
- Is it possible to access MVC Views located in another project?
- mvc uppercase Model vs lowercase model
- EditorTemplate for DropDownList
- ‘WebForm_DoPostBackWithOptions’ is undefined in IE11 Preview
- Context menu to Add Controller/View missing
- The type initializer for ‘System.Data.Entity.Internal.AppConfig’ threw an exception
- Windows Authentication for ASP.NET MVC 4 – how it works, how to test it
- How to return raw string with ApiController?
- The anti-forgery cookie token and form field token do not match in MVC 4
- What does the web.config compilation/assemblies element do?
- Deploying ASP.NET MVC4 App to GoDaddy Compiler issue
- ASP.NET MVC4 Bundling with Twitter Bootstrap
- aspnet_compiler finding wrong version of System.Web.WebPages 1.0.0.0 instead of 2.0.0.0
- All requests to ASP.NET Web API return 404 error
- URL encoded colon resolves in 400 Bad Request
- What’s the meaning of “UseTaskFriendlySynchronizationContext”?
- ASP.NET 2.0 – How to use app_offline.htm
- How to configure invariant culture in ASP.NET globalization?
- How to force BundleCollection to flush cached script bundles in MVC4
- What does ‘IISReset’ do?
- ASP.NET Why are sessions timing out, sessionstate timeout set
- How to route EVERYTHING other than Web API to /index.html
- From where CultureInfo.CurrentCulture reads culture