You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
407 B

4 years ago
  1. using Microsoft.AspNet.FriendlyUrls;
  2. using System.Web.Routing;
  3. namespace JMEAgentSystem
  4. {
  5. public static class RouteConfig
  6. {
  7. public static void RegisterRoutes(RouteCollection routes)
  8. {
  9. var settings = new FriendlyUrlSettings();
  10. settings.AutoRedirectMode = RedirectMode.Permanent;
  11. routes.EnableFriendlyUrls(settings);
  12. }
  13. }
  14. }