ashkufaraz
ashkufaraz

Reputation: 5297

rename url content

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

Upvotes: 0

Views: 245

Answers (1)

Petar Ivanov
Petar Ivanov

Reputation: 93040

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.

Upvotes: 1

Related Questions