URL rewriting through global.aspx file
protected void Application_BeginRequest(object sender, EventArgs e)
{
if (Request.Url.ToString().ToLower().Contains("aboutu s.aspx"))
{
app.Context.RewritePath("/PrayerForPease/showStaticPages.aspx?pageId=" + pageId);
}
}
|