Redirect Homepage to another page when user login

I have a wordpress that users can register and become a member, and how do I get my homepage https://sample.com redirected to the settings page https://sample.com/setting for example. so when the user logs in, they cannot access the homepage which is https://sample.com