How to redirect all error 404page into homepage?

Helo all developers and users, can u guys teach me how to direct all 404 not found / 404 error page to homepage in cyberpanel? thanks!