2 {
3 // Note: Change Url= to Url="[controller].mvc/[action]/[id]" to enable
4 // automatic support on IIS6
5
6 RouteTable.Routes.Add(new Route
7 {
8 Url = "[controller]/[action]/[id]",
9 Defaults = new { action = "Index", id = (string)null } ,
10 RouteHandler = typeof(MvcRouteHandler)
11 });
12
13
14 RouteTable.Routes.Add(new Route
15 {
16 Url = "Default.aspx",
17 Defaults = new { controller = "Home", action = "Index", id = (string)null },
18 RouteHandler = typeof(MvcRouteHandler)
19 });
20
21
22 }