I want to redirect all my "Page not found" to homepage.
My domain have a lots of backlinks of a page which doesn't exist now on website. It show "Page not found".
I have tried this in .htaccess:
ErrorDocument 404 /index.php
1.) There are a lot of backlinks of this page. Now this page doesn't exist on my website now.
There are a lot of pages like this which show "page not found".
I want to redirect all "page not found" to my Question and Answer Website homepage.