A simple redirect route handler for ASP.NET 3.5 routing

ASP.NET 3.5 Routing is a very powerful tool not just for registering
routes for newer ASP.NET MVC applications but also for adding SEO
friendly routes to older Webforms (ASPX) applications, or for routing
multiple URLs to a single page. But that’s not all it can do. You can
create your own IRouteHandler and then have complete control over what
to do with any incoming HttpRequest.

Here for example is a way to do a permanent redirect when a given route
is matched. To use it you might, for example, do:-