• Hi guys,
    I would like my WP to redirect to a 404 error page if the posting no longer exists. When I say redirect, I mean send out a real 404 error, so that the posting is no longer indexed in search engines.
    Can anyone help, pls? 🙂

Viewing 1 replies (of 1 total)
  • Hm… this isn’t my forte, but can’t you just send the 404 header and then include your 404.php page?

    <?php header (“HTTP/1.0 404 Not Found”);
    include(‘/path/to/404.php’);
    exit();
    ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Redirect to 404?’ is closed to new replies.