Add the below code to redirect wp-login.php to another page. You can add the code in the functions.php file in your theme or child theme. Change the “/my-account” to your desired page link at line 5. You must quote the single quotes around the link.
add_action('init','ms_redirect_wp_login');
function ms_redirect_wp_login(){
global $pagenow;
if( 'wp-login.php' == $pagenow ) {
wp_redirect('/my-account');
exit();
}
}
Please Note: Using this code may have issues with logging out in some sites because WordPress logout feature uses wp-login.php. Let me know if you have any workaround for that.