index.php – 404 Not found – wp-blog-header.php
-
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.
https://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.netYes, 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
https://www.ryanbrooks.net/index.php – inside, navigating the links, I got the same problem.
https://www.ryanbrooks.net/?cat=2 was the same 404, but using https://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
- The topic ‘index.php – 404 Not found – wp-blog-header.php’ is closed to new replies.