作用:把 http://xxx/2007/10/03.aspx 轉到 http://xxx/list.aspx?y=2007&m=10&d=03

重點:HttpContext.RewritePath

 

URL=http://msdn2.microsoft.com/en-us/library/ms972974.aspx

by Scott Mitchell
Summary: Examines how to perform dynamic URL rewriting with Microsoft ASP.NET. URL rewriting is the process of intercepting an incoming Web request and automatically redirecting it to a different URL. Discusses the various techniques for implementing URL rewriting, and examines real-world scenarios of URL rewriting.

URL=http://www.codeproject.com/aspnet/URLRewriter.asp

By Richard Birkby
Demonstrates the use of regular expression-based URL Rewriting, similar to mod_rewrite with ASP.NET

  • Application_BeginRequest
  • Configuration Section Handlers