void Application_BeginRequest(object sender, EventArgs e) { HttpApplication app = sender as HttpApplication; if(app.Request.Path.IndexOf("FriendlyPage.html") > 0) { app.Context.RewritePath("/UnfriendlyPage.aspx?SomeQuery=12345"); } }
http://www.codeproject.com/Articles/33341/URL-Rewriting-using-ASP-NET-for-SEO
文章標籤
全站熱搜
