Redirecting a URL with an action parameter
snippet in htaccess

Redirecting a URL with an action parameter

user5041

function disable_lost_password() {
    if ( in_array( $_GET['action'], array('lostpassword', 'retrievepassword') ) ) {
        wp_redirect( wp_login_url(), 301 );
        exit;
    }
}
add_action( "init", "disable_lost_password" );