开发者

rename url content

开发者 https://www.devze.com 2023-03-26 18:01 出处:网络
when url= http://www.iranfairco.com/MainPP.aspx?idCompany=142707090021 . change content MainPP.aspx by idCompany

when url= http://www.iranfairco.com/MainPP.aspx?idCompany=142707090021 .

change content MainPP.aspx by idCompany for example idCompany=142707090021 equal companyName microsoft

no how can when user enter url: http://www.iranfairco.com/microsoft this equal above url

how can http://www.iranfairco.com/MainPP.aspx?idCompany=142707090021====url:http://www.iranfairco.com/microsoft开发者_如何学Go


You should use some url rewrite module (or write your own - it's not hard). For example: IIS URL Rewrite, also look here.

Look at also this thourough explanation of how URL Rewriting in ASP.NET works.

0

精彩评论

暂无评论...
验证码 换一张
取 消