我想使用Asp.Net项目中的URL重写来增加“ seo”工作。在项目global.asax
中protected void Application_Start(object sender, EventArgs e)
{
UrlRoute(RouteTable.Routes);
}
protected void UrlRoute(RouteCollection route)
{
route.MapPageRoute("profil", "profil", "~/Profil.aspx");
route.MapPageRoute("YBS", "YBS", "~/MIS.aspx");
route.MapPageRoute("paylasim", "paylasim", "~/Paylasim.aspx");
}
我添加了代码。不,麻烦在哪里?