What is the use of URL mapping?
Take a more practical example, for example, you develop a blog website, and the loading address of each blog homepage is
www.blog.com/default.aspx?id=ANCKLY
Default page selects the content of the corresponding user's blog through the ID, but you need your users to enter www.blog.com/anckly to access his blog. At this time, you can use URL mapping in ASP.NET2.0 to achieve this effect.
The principle of implementation is to configure the URL mapping by configuring the website web.config file.
<!-URL mapping->
<Urlmappings enabled = true>
<Add url = ~/anckly mappedUrl = ~/default.aspx? ID = ANCKLY/>
</Urlmappings>
The next step is to set the mapping path. URL represents the URL entered by the user, and the mappedurl represents the web page URL that the server really receives.
Back to the first question, you can add an ADD node to the URLMAppings after each user registered (please refer to System.configuration naming space) to store the URL mapping path of each user.
Another use of the URL mapping is to hide the real webpage path and provide a certain security guarantee for the website.