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

**URL:** <https://discuss.workflowgen.com/t/setup-form-authentication-how-to-keep-the-login-aspx-file-in-one-place/617>\
**Category:** Authentication\
**Created:** [December 6, 2013, 7:27am UTC](https://discuss.workflowgen.com/t/setup-form-authentication-how-to-keep-the-login-aspx-file-in-one-place/617 "2013-12-06T07:27:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wfg-admin](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/wfg-admin/32/714_2.png) [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Post date:** [December 6, 2013, 7:27am UTC](https://discuss.workflowgen.com/t/setup-form-authentication-how-to-keep-the-login-aspx-file-in-one-place/617/1 "2013-12-06T07:27:37Z")

</div>

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:

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

```
