标签归档:urlrewrite

Asp.net Routing UrlRewrite

void Application_Start(object sender, EventArgs e)
{
    //调用 RegisterRoutes() 来注册 Url 路由
    RegisterRoutes(RouteTable.Routes);
}
 
private static void RegisterRoutes(RouteCollection routes)
{
    IRouteHandler rssRouteHandler = new RssRouteHandler();
 
    //对于 /rss-type-num 这种规则的 Url 会转...

继续阅读

发表在 technologys | 标签为 , , | Asp.net Routing UrlRewrite已关闭评论