Changing the location of the default login page

The web.config file in the root of your application can be used to determine the location of the login page - i.e. the page users are redirected to if they try to access a secured page. By default users are redirected to login.aspx in the root of the application. There is usually no need to change this.

If you do need to change the location of the login page:

  1. In the web.config file locate the entry that reads:
    <authentication mode="Forms" />
  2. Change that entry to read as follows:
    <authentication mode="Forms">
      <forms loginUrl="ValidateUser.aspx">
    Note the authentication element is no longer self closing.
  3. This will direct queries which require authentication to a page named ValidateUser.aspx