Remapping URLs in your application's web configuration file : URL « Page Lifecycle « ASP.NET Tutorial






Remap the Home.aspx page to the Default.aspx page.

File: Web.Config

<configuration>
<system.web>
  <urlMappings>
    <add
      url="~/Home.aspx"
      mappedUrl="~/Default.aspx"/>
  </urlMappings>
</system.web>
</configuration>

The tilde character (~) represents the current application root. 
A forward slash (/) at the start of a URL represents the website root.








5.19.URL
5.19.1.Remapping URLs in your application's web configuration file
5.19.2.Determine the current URL:
5.19.3.Request.RawUrl