Skip to content

Instantly share code, notes, and snippets.

@masaru-b-cl
Created December 21, 2013 06:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masaru-b-cl/8066118 to your computer and use it in GitHub Desktop.
Save masaru-b-cl/8066118 to your computer and use it in GitHub Desktop.
One ASP.NET Calendar 2013 - RouteConfig.cs
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Routing;
using Microsoft.AspNet.FriendlyUrls;
namespace FriendlyURLsSample
{
public static class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
var settings = new FriendlyUrlSettings();
settings.AutoRedirectMode = RedirectMode.Permanent;
routes.EnableFriendlyUrls(settings);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment