Skip to content

Instantly share code, notes, and snippets.

@explorer14
Created February 19, 2018 23:05
Show Gist options
  • Save explorer14/7d26912f948949e0f48bf27ecf46eb86 to your computer and use it in GitHub Desktop.
Save explorer14/7d26912f948949e0f48bf27ecf46eb86 to your computer and use it in GitHub Desktop.
public static class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
var settings = new FriendlyUrlSettings();
settings.AutoRedirectMode = RedirectMode.Temporary;
routes.EnableFriendlyUrls(settings);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment