title: Modifying the routing asp mvc
body: <p>In my ASP MVC application, I need to show the URL path like this:</p>
  
  <blockquote>
    <p>domain.com/viewName</p>
  </blockquote>
  
  <p>I have the route config in the follow way:</p>
  
  <pre><code>public static void RegisterRoutes(RouteCollection routes)
      {
          routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
          routes.RouteExistingFiles = false;
          routes.IgnoreRoute("{*allfiles}", new { allfiles = @".*\.(css|js|gif|jpg|png)" });            
  
          routes.MapRoute(
             "Theme",
             "theme/{theme}/{page}",
             new { controller = "Theme", action = "Index", page = UrlParameter.Optional },
             new[] { "Tenant.Controllers" }
          );
  
          routes.MapRoute(
             "ThemeSlider",
             "theme/slider/{id}",
             new { controller = "Theme", action = "Slider" },
             new[] { "Tenant.Controllers" }
          );
  
          routes.MapRoute(
              "Default",
              "{controller}/{action}/{id}",
              new { controller = "Home", action = "Index", id = UrlParameter.Optional },
              new[] { "Tenant.Controllers" }
          );
  
          routes.MapRoute(
              "Default_tenant",
              "{page}",
              new { controller = "Home", action = "Index", page = UrlParameter.Optional },
              new[] { "Tenant.Controllers" }
          );
  
          routes.MapMvcAttributeRoutes();
      }
  </code></pre>
  
  <p>But it does not works, I have to specify the page parameter in the follow way: <strong>domain.com/?page=viewName</strong>. How should be the route config that leaves the follow routes:</p>
  
  <p>domain.com.co/controller/action/
  domain.com.co/view</p>
  
  <p>Any sugestion ?? Thanks in advance</p>