Guest User

Untitled

a guest
Jun 19th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. RouteTable.Routes.MapRoute("action", "api.mvc/{controller}/{action}", new {action = "Index"});
  2.  
  3. HttpContext.Current.RewritePath(Request.ApplicationPath, false);
  4. IHttpHandler httpHandler = new MvcHttpHandler();
  5. httpHandler.ProcessRequest(HttpContext.Current);
  6.  
  7. RouteTable.Routes.MapRoute("default", "", new {controller="Home", action = "Index" });
  8.  
  9. <httpModules>
  10. <add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing"/>
  11. </httpModules>
Add Comment
Please, Sign In to add comment