You are so appreciated to help me. I add some code in Global.asax void Application_BeginRequest(object sender, EventArgs e) { // If the requested file exists if (File.Exists(Request.PhysicalPath)) { return; } else { // find in database // get the correct url, and save to the CorrectURL Context.RewritePath(CorrectURL, false); return; } } BTW, my web is coded under ASP.NET 2.0. Any suggestion, kindly let me know.