This tutorial will show you how to redirect your 404 page to home page in WordPress.
Log into your hosting account and navigate to File manager:
Open wp-content/themes/themeXXXXX folder where XXXXX is your actual theme number:
You should create a new file in this folder. Click "New file" button:
Name your new file as 404.php:
Open your newly created file using Editor and add this code there:
<?php header("HTTP/1.1 301 Moved Permanently"); header("Location: ".get_bloginfo('url')); exit(); ?>
Click "Save changes" button:
Refresh your website, 404 page is successfully redirected to your Home page now.
Feel free to check the detailed video tutorial below: