Add Code in the function.php file

/* Redirect 404 to Homepage */
add_action('template_redirect', 'redirect_404_to_homepage', 999);
function redirect_404_to_homepage(){
    if(!is_404())
        return;
    wp_redirect(home_url());
    exit;
}

Contact me.

I would love to hear from you, send me a message using the form below.

    ×