I am using Asp.net 4.0. I have done following code and running perfectly. only issue is that when we write original URL in explorer then that URL still running and not rewrite to my new SEO Friendly. I don't know how to overcome this problem so friends please help me to solve this problem.
void Application_Start(object sender, EventArgs e)
// Code that runs on application startup
MapPageRoute("TheHome", "this-is-my-first-url", "~/default.aspx");
MapPageRoute("TheProduct", "this-is-my-second-url", "~/products.aspx");
void Application_BeginRequest(object sender, EventArgs e)