Setup: Form authentication: How to keep the login.aspx file in one place?

To keep one login.aspx file under the \wfgen folder without having to duplicate it for all other applications (such as \wfgen\wfapps\webapps\eformaspx and \wfgen\wfapps\webforms), you just have to update your web.config file, located in the DRIVE:\Inetpub\wwwroot\wfgen folder.

The loginUrl and defaultUrl paths must be relative:

<authentication mode="Forms">
    <forms name="WFGApp" timeout="30" loginUrl="/wfgen/login.aspx" defaultUrl="/wfgen/default.aspx" cookieless="AutoDetect" />