When the webForm page is running, the url is generally like this: localhost: *****/index. aspx, this process is when you run the page, the microserver that comes with vs development tool will open this file on your hard disk and display it on the browser, therefore, the second half of the url is the name of the page (index. aspx), but in mvc, it is like this: localhost: ***/index, because mvc has a complete set of browser mechanism to control browser requests. Look at Global. routing definition in the asax file: copy the code public static void RegisterRoutes (RouteCollection routes) {routes. ignoreRoute ("{resource }. axd/{* pathInfo} "); routes. mapRoute ("Default", // route name "{controller}/{action}/{id}", // URL with parameters new {controller = "Home ", action = "Index", id = UrlParameter. optional} // default value of the parameter);} copy the code to comment out the default route and re-define a route: According to the prompt of vs, you can only see that one parameter is the route name, A routing mode is defined as routes. mapRoute ("MyRoute", "{cont Roller}/{action} "); you can create a Controller with a route. Create a HomeController: copy the code public class HomeController: Controller {public ActionResult Index () {return View () ;}} copy the code to create a corresponding View: copy the code @ {Layout = null ;}<! DOCTYPE html>