WordPress 404 redirect

By simply adding a file called 404.php into your WordPress theme directly you can quite easily create and customize the page shown when a visitor tries to access something which isn’t there. But what if you wanted to automatically redirect this user to your front page (or some other page …