Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

redirect if not logged in

function my_redirect() {  
    //if you have the page id of landing. I would tell you to use if( is_page('page id here') instead
    //Don't redirect if user is logged in or user is trying to sign up or sign in
    if(!is_user_logged_in() && curPageURL() != 'https://www.premierdeadsea-usa.com/aesthetician-corner/wp-login.php' && curPageURL() != 'https://www.premierdeadsea-usa.com:443/aesthetician-corner/login-page/') {
   // echo curPageURL();
    wp_redirect( 'https://www.premierdeadsea-usa.com/aesthetician-corner/login-page/', 302 );
    exit;
}
}
add_action( 'template_redirect', 'my_redirect' );

//
//  Re-direct not-logged-in users to holding page
//