Forums

404.php file not loading (2 posts)

  1. scrubbicus
    Member
    Posted 5 months ago #

    I'm trying to get a nice 404 error page to display, I have a 404.php file in my custom template directory but whenever I type a URL that doesn't exist I get the standard 404:
    http://ewebsiteservices.com/pagedoesntexist

    I was reading around and I found that this below URL is supposed to show the 404.php file, but it just goes to the default home page.
    http://ewebsiteservices.com/index.php?error=404

    I put this in my .htaccess
    ErrorDocument 404 /index.php?error=404

    I have a default Page and Posts in my Reading Settings.

    Permalinks is enabled.

    Any help is appreciated. Thanks.

  2. wrk
    Member
    Posted 3 months ago #

    HEY scrubbicus,

    I encountered the same problem. See my post at: http://wordpress.org/support/topic/404-status_header-breaks-loading-404-template.

    Did you already find some solutions?

    The only thing I discovered is that when you output something to the browser before the header 404 status is send, you will get your themes 404 template.

    Looks like this is a server problem to me..

Reply

You must log in to post.

About this Topic