windows 2008 iis7 URL重寫 版塊 正則運算式寫法問題。
舉例:
http://www.aaa.com/?id=1501 想重寫成 http://www.aaa.com/1501.html
這個要怎么寫?我是新人,哪位大佬幫忙解答!萬分感謝!

uj5u.com熱心網友回復:
現在都沒人用IIS了吧,.net都是上 kestrelserveruj5u.com熱心網友回復:
你這是想偽靜態嗎?配置由路試試比如
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}.html",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional },
namespaces: new string[] { "Controller.Controllers" }
);
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/93478.html
標籤:ASP.NET
