Forums

index.php - 404 Not found - wp-blog-header.php (3 posts)

  1. RyanBrooks
    Member
    Posted 8 years ago #

    Hey guys, this post is not really a bug, so don't check out my site as everything is working properly. This is more an FYI.

    My servers are running IIS, with Plesk and PHP running as FastCGI. Now, I noticed that there was a relatively large problem with 404 pages. Let me elaborate.

    http://www.ryanbrooks.net/ was coming up as a 404. In fact, the entirety of the website was:
    Not Found
    The requested document was not found on this server.
    Web Server at ryanbrooks.net

    Yes, the file did exist, there was no index.html file, and my directory index was something to the effect of index.html, index.php, index.asp

    http://www.ryanbrooks.net/index.php - inside, navigating the links, I got the same problem.
    http://www.ryanbrooks.net/?cat=2 was the same 404, but using http://www.ryanbrooks.net/index.php?cat=2 it's
    fine.

    Now, here's the complete PHP source to index.php:
    < ? php
    define('WP_USE_THEMES', true);
    require_once("./wp-blog-header.php");
    ? >

    The funny thing is that when I do:
    < ? php
    echo " ";
    define('WP_USE_THEMES', true);
    require_once("./wp-blog-header.php");
    ? >

    Everything was fine, though I still got the same problem with /?cat=2.

    This was NOT a problem in ./wp-admin/ or ./wp-admin/index.php

    This lead me to believe, in my quasi-infinite wisdom, that it was a problem with wp-blog-header.php

    Solution:

    Start: Line 16, at "// Process PATH_INFO and 404."

    End: Line 86, at " }"

    Delete, or comment out.

    Now, this would likely be a problem with other users, but since I don't do any mod_rewrite or anything, it was a quick fix.

    Just FYI.

    -Ryan

  2. Ryan Boren
    WordPress Dev
    Posted 8 years ago #

    This change fixes the problem.

  3. KPIZME
    Member
    Posted 8 years ago #

    THANK YOU RYAN! This also solved the exact same problem that I have been "struggling" with and ended up attributing to Microsoft Server/ Plesk and wp-blog-head.php.
    http://wordpress.org/support/topic.php?id=29661

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.