# Users can't login after changing default page from domain.tld to sub.domain.tld

**URL:** https://forum.yunohost.org/t/users-cant-login-after-changing-default-page-from-domain-tld-to-sub-domain-tld/23342
**Category:** Support
**Tags:** french, english
**Created:** [January 29, 2023, 10:15pm UTC](https://forum.yunohost.org/t/users-cant-login-after-changing-default-page-from-domain-tld-to-sub-domain-tld/23342 "2023-01-29T22:15:12Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![DerpFox](https://forum.yunohost.org/user_avatar/forum.yunohost.org/derpfox/32/7456_2.png) [@DerpFox](https://forum.yunohost.org/u/DerpFox)
#### Post date: [February 3, 2023, 6:48am UTC](https://forum.yunohost.org/t/users-cant-login-after-changing-default-page-from-domain-tld-to-sub-domain-tld/23342/8 "2023-02-03T06:48:40Z")

</div>

> [@Aleks](#):
>
> Do you mean you changed the main domain of YunoHost ?

I think. In the domain menu, I clicked on make default, I thought it just changed the yunohost access domain. (to the sso page, admin page etc)

I have 3 domain link to that install

domain0.tld, domain1.tld and domain3.tld

right now, I access to yunohost via domain0.tld, but I want to use it for other purpose, so I made default sub.domain0.tld

```auto
    "portal_domain": "sub.domain0.tld",
    "portal_path": "/yunohost/sso/",
    "redirected_regex": {
        "sub.domain0.tld/yunohost[\\/]?$": "https://sub.domain0.tld/yunohost/sso/"
    },

```

If I set the default to domain0.tld everything work normally again, I can login etc

---

_[View the full topic](https://forum.yunohost.org/t/users-cant-login-after-changing-default-page-from-domain-tld-to-sub-domain-tld/23342)._
