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.

18 lines
482 B

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