Add The Gloabal.asax File by right click on website->
Add new item -> Global.asax
and add the below code inside Application_BeginRequest Event
void Application_BeginRequest(object sender, EventArgs e)
{
string GetUrl =
Request.Url.ToString();
if (GetUrl.Contains("/Home-page") == true)
{
Context.RewritePath("home.aspx");
}
else if (GetUrl.Contains("/Default") == true)
{
Context.RewritePath("Default.aspx");
}
}
.CS in aspx file
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("Default");//redirect to default.aspx
}
http://weblogs.asp.net/owscott/archive/2009/11/27/iis-url-rewrite-rewriting-non-www-to-www.aspx
http://www.eggheadcafe.com/tutorials/aspnet/6592d2d4-bbf4-4ecd-93df-52898c6aa5d7/iis-70-extensionless-urlrewriting-short-urls.aspx
Hope you Get it...!