Default page instead of 404

I am wondering if I can redirect the user to a default page (eg. index.html) if the route that user provided does not exist. I don't want to show the user a 404 page.
Was this page helpful?