I need to access the same page via two different names for the page.
Example:
CustomersDetail.aspx needs to be accessable using the aliased name PartnersDetail.aspx
CustomersDetail.aspx is the real file.
Both of the following urls should map to the same page:
http://www.example.com/CustomersDetail.aspx
http://www.example.com/PartnersDetail.aspx
Is this possible using the Web.Config? If this is possible can the page know which url it was accessed from by looking that the request uri?
4GuysFromRolla does an excellent job of explaining ASP.NET 2.0’s method of url mapping within the web.config which allows for very readable and easily maintainable url mapping.
Essentially you will want to put the following in your web.config inside of the system.web section: