Sometimes when browse the website we got the error message (404 page not found)it occurs when you are trying to visit the page which has been removed or not available for some reasons.
So it is better to create a 404 page for your site and redirect traffic from incorrect urls and prevent your website traffic to lose.
To set the redirect please follows the steps:
First of all you need to create a page http://www.yoursite.com/404.shtml
After that put the following code inside:
<meta http-equiv=”refresh” content=”0;url=https://yoursite.com/index.html” />
Hit save and browse the domain to check the redirect.