Am working in asp.net and had to rewrite some urls rewriting is working fine here is an example I had to change URL mywebsite.com/search.aspx?cat=1 to mywebsite.com/search/cameras and it's working fine now I have to change page meta tags and when I try to get url by using
HttpContext.Current.Request.Url.PathAndQuery
am getting search.aspx?cat=1
while I want here is address written in address bar which is search/cameras if it's not possible than is there any way to set meta tags for specific pages? here is code for url rewrite
m_boolIsCustomPage = true;
m_strPageBaseUrl = "search.aspx";
if (m_intIDSearch > -1)
{
l_strQueryContents = m_intIDSearch.ToString();
m_intIDSearch = -1;
}
else
{
l_strQueryContents = "-1";
m_intIDSearch = -1;
}