To disable the author page from WordPress and redirect using 301 redirection, simply copy and paste the following code into your functions.php file:
// Redirect Author Page to Home function vpsb_redirect_author_page() { global $wp_query; if ( is_author() ) { // Redirect to home, set status to 301 permanent wp_redirect(get_option('home'), 301); exit; } } add_action('template_redirect', ‘vpsb_redirect_author_page');
If you are using Yoast SEO plugin, you can disable it from admin area > SEO > Search Appearence > Archives > Author archives > Disabled