URL Rewriting in ASP.NET
Posted In:
ASP.NET 1.1
,
httpModules
,
IConfigurationSectionHandler
,
IHttpModule
,
RewritePath
,
文章摘要
.
By 卡西卡
作用:把 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.
- CODE=D:\Project\_core2\URL Rewriting in ASP.NET
- DEMO [KLCHANG3]
~/Products/Beverages.aspx ==> ListProductsByCategory.aspx?CategoryID=1
~/2003/10/01.aspx ==> ShowBlogContent.aspx?year=2003&month=10&day=01
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