Multiple config files, all named Web.config, can appear in
multiple directories. Each
Web.config file applies settings to it's own directory and
all children directories beneath it.
Config files in child
directories can supply additional settings on top of those inherited from parent directories; they can also be used to override settings defined in
parent directories.
So, if you placed all of your admin pages in a folder called Admin, you could then configure your web.config file (in the root of your web application) to use "~/mustlogin.aspx" as the logon page - and create a second web.config file in the Admin folder, overriding the logon page setting to use "login.aspx".
Cheers,
Tones.
Tony Milne is a co-founder of
Inlight Media, a leading Australian web development company.