How to redirect ALL pages to the home page?

i have this .htaccess file at the moment

ErrorDocument 400
ErrorDocument 401
ErrorDocument 403
ErrorDocument 404
ErrorDocument 500

how can i simply redirect all pages / broken links to the root ?


I may be wrong but I don’t think there is a way to do this, but I don’t think you should really want to do it either.

Each of these error codes means something different. Only the 404 error refers to a broken link.
I know personally that I hate it when I follow a dead link and I am redirected to the homepage without any information about what is happening.

If your website encounters a 500 server error do you really want to redirect users to the homepage?

There aren’t that many 4xx and 5xx errors to deal with so doing it manuallly isn’t that time consuming.