# How to go to a member's only homepage once my members login?

**URL:** <https://forum.wixstudio.com/t/how-to-go-to-a-members-only-homepage-once-my-members-login/73658>\
**Category:** Ask the community\
**Tags:** question, wix-members-area, code\
**Created:** [September 18, 2025, 4:00pm UTC](https://forum.wixstudio.com/t/how-to-go-to-a-members-only-homepage-once-my-members-login/73658 "2025-09-18T16:00:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luke\_Miller](https://avatars.discourse-cdn.com/v4/letter/l/7feea3/32.png) [@Luke\_Miller](https://forum.wixstudio.com/u/Luke_Miller)\
**Post date:** [September 18, 2025, 4:00pm UTC](https://forum.wixstudio.com/t/how-to-go-to-a-members-only-homepage-once-my-members-login/73658/1 "2025-09-18T16:00:18Z")

</div>

I am trying to see if there is a way to have my members automaticlly sent to my members-only homepage once they login to there account? After some research I believe it would be option to code it in myself but I’m not sure how to go about that?

**Any help would be appreciated!**

---

<div class="post-metadata">

**Author:** ![Pratham](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/pratham/32/119586_2.png) [@Pratham](https://forum.wixstudio.com/u/Pratham)\
**Post date:** [September 18, 2025, 4:47pm UTC](https://forum.wixstudio.com/t/how-to-go-to-a-members-only-homepage-once-my-members-login/73658/2 "2025-09-18T16:47:25Z")

</div>

Hey Luke,

> [@Luke\_Miller](#):
>
> After some research I believe it would be option to code it in myself

Did you try searching about this on the forum before posting the question?  
It is always recommended to search the forum first. Chances are - many users have had the same question before and have already found the solution to it.

So yes, you will need to write a few lines of code to make this work, and here’s how:

> [@Redirect to member only page after member login](https://forum.wixstudio.com/t/redirect-to-member-only-page-after-member-login/67828/8):
>
> That’s totally fine. All of us were alien to code at some point! (: Here’s the correct code. Simply delete any previous code inside your masterPage.js file and paste this: import wixLocationFrontend from 'wix-location-frontend'; import { authentication } from 'wix-members-frontend'; authentication.onLogin(async (member) =\> { wixLocationFrontend.to('https://www.sybaritesporting.com/'); }); Just to let you know what the users above suggested: wix-users is an old API and is now depricate…

All you need to do is change the URL with the page you want to redirect your users to once they login, and that’s it! (:

---

<div class="post-metadata">

**Author:** ![Luke\_Miller](https://avatars.discourse-cdn.com/v4/letter/l/7feea3/32.png) [@Luke\_Miller](https://forum.wixstudio.com/u/Luke_Miller)\
**Post date:** [September 18, 2025, 5:04pm UTC](https://forum.wixstudio.com/t/how-to-go-to-a-members-only-homepage-once-my-members-login/73658/3 "2025-09-18T17:04:01Z")

</div>

Yes I had researched it and hadn’t gotten any of the other posts to work but I hadn’t seen this thread. This one works. Thanks for your help!
