Click here to Skip to main content
15,843,623 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900