WordPress 404.php перенаправить в дом

<?php
// NOTE: create this file name on your child theme: 404.php and add the code:
header("HTTP/1.1 301 Moved Permanently");
header("Location: ".get_bloginfo('url'));
exit();
?>
gtamborero