Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #321297

    Hi –
    We have a number of older posts we’ve set to draft status. Following your support I created a new 404.php file in our child theme. I put in this code:

    <?php
    header(“HTTP/1.1 301 Moved Permanently”);
    header(“Location: “.get_bloginfo(‘url’));
    exit();
    ?>

    But when you go to links from removed/draft mode posts, you still get this page:
    Nothing Found
    Sorry, the post you are looking for is not available. Maybe you want to perform a search?

    Why aren’t these pages redirecting to the frontpage?

    #321731

    Hey blankonblank!

    Thank you for using Enfold.

    These plugins might help:

    https://wordpress.org/plugins/redirection/
    https://wordpress.org/plugins/all-404-redirect-to-homepage/

    Cheers!
    Ismael

    #321957

    ok. thanks. can layout builder be used to make a 404 page?

    #321959

    Hi!

    No, you are going to need to edit 404.php file and enfold/includes/error404.php file to edit 404 page

    Regards,
    Yigit

    #322135
    This reply has been marked as private.
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Dead Post Redirect’ is closed to new replies.