Use a wildcard segment:
routes.MapRoute(
name: "Default",
url: "{*anything}",
defaults: new { controller = "Home", action = "Index" }
);
More Related Contents:
- How to get DropDownList SelectedValue in Controller in MVC
- How to get the public IP address of a user in C#
- Passing data between different controller action methods
- How to update a claim in ASP.NET Identity?
- Proper JSON serialization in MVC 4
- Windows Authentication and add Authorization Roles through database – MVC asp.net
- {version} wildcard in MVC4 Bundle
- MVC4 – Bundling does not work when optimizations are set to true
- How to create Select List for Country and States/province in MVC
- Display string as html in asp.net mvc view
- LINQ to Entities does not recognize the method ‘System.String ToString()’ method in MVC 4
- How do I create a custom membership provider for ASP.NET MVC 2?
- Could not find a part of the path … bin\roslyn\csc.exe
- How to get current user, and how to use User class in MVC5?
- How to call another controller Action From a controller in Mvc
- prevent property from being serialized in web API
- ASP.NET MVC Global Variables
- MVC web api: No ‘Access-Control-Allow-Origin’ header is present on the requested resource
- Adding your own HtmlHelper in ASP.NET MVC 3
- Write PDF stream to response stream
- ASP.NET MVC Razor render without encoding
- How to get current page URL in MVC 3
- Assign format of DateTime with data annotations?
- POST string to ASP.NET Web Api application – returns null
- How to manually validate a model with attributes?
- Redirect to another page when user is not authorized in asp.net mvc3
- How to add and get Header values in WebApi
- Web API in MVC solution in separate project
- Specify Date format in MVC5 (dd/MM/yyyy)
- There is no ViewData item of type ‘IEnumerable’ that has the key country