Paste the code to function.php


add_action(‘wp_logout’,’auto_redirect_external_after_logout’);
function auto_redirect_external_after_logout(){
wp_redirect( ‘website url’ );
exit();
}

Refer from here – https://www.trickspanda.com/auto-redirect-users-logout-wordpress/