Hi,
I am working on a news website, Asp.net 4.0 C#
I want to perform URL Rewriting, I read many pages and did its instructions, but it has not been working properly!
It is my main URL: http://news.ariavid.com/articles.aspx?id=3
I wrote these codes in Global.asax:
add this Namespace: using System.Web.Routing;
protected void Application_Start(object sender, EventArgs e)
{
RegisterRoutes(RouteTable.Routes);
}
public static void RegisterRoutes(RouteCollection routes)
{
routes.MapPageRoute("article-browse", "articles/{id}","~/articles.aspx");
}
but I don't have any changes!
Please Help me to solve the problem,
Thanks in advance.
shery