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 (like /wfgen/wfapps/webapps/eformaspx and /wfgen/wfapps/webforms) you just have to update your web.config file.

The loginUrl and defaultUrl paths have to be relative:

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