Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #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:

    header(“HTTP/1.1 301 Moved Permanently”);
    header(“Location: “.get_bloginfo(‘url’));

    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?


    Hey blankonblank!

    Thank you for using Enfold.

    These plugins might help:



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



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


    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.