void Application_BeginRequest(object sender, EventArgs e) { HttpContext context = (sender as HttpApplication).Context; if (context.Request.Path.Contains("Source.aspx")) { context.RewritePath("SubFolder/Target.aspx", false); } }