Page Loader

Symptoms:
The URL is loadable via normal browsers. However Google Webmaster Tools report crawl error of “not found”. When fetched as Google, it will return “HTTP/1.1 404 Not Found” instead of “HTTP/1.1 200 OK”.

Cause:
I was including WordPress “wp-blog-header.php” in my script such as:

require("subfolder/wp-blog-header.php");

This is the only reason. This is the code that contribute to the error:

if ( !isset($wp_did_header) ) {
$wp_did_header = true;
require_once( dirname(__FILE__) . '/wp-load.php' );
wp();
require_once( ABSPATH . WPINC . '/template-loader.php' );
}

Solution:

Comment 2 lines such as:

//wp();
//require_once( ABSPATH . WPINC . '/template-loader.php' );

I don’t know why, but it cure my crawl error.

Comments
Leave a Reply

Your email address will not be published. Required fields are marked *

Highlights
Recent Posts
Instagram Feed
                                    #kitabakor
                                    Expecting to close above 10W average this week.. aminnn.
                                    https://scontent.cdninstagram.com/v/t51.2885-15/e35/s320x320/93973591_2583662348565050_5463274316583976513_n.jpg?_nc_ht=scontent.cdninstagram.com&_nc_ohc=iAf2UKFdOncAX_oWZAa&oh=ec3d33352adc78507d9c957ac508e9a9&oe=5ED0F0E2
                                    https://scontent.cdninstagram.com/v/t51.2885-15/e35/s320x320/93402322_532745040759024_6091110860798729703_n.jpg?_nc_ht=scontent.cdninstagram.com&_nc_ohc=niVH-jI0YmcAX_tuUT2&oh=d1d143d69a401e836d4eea1f8081e9d4&oe=5EF6FAFC
                                    https://scontent.cdninstagram.com/v/t51.2885-15/e35/s320x320/93100512_1537334973102603_72053284478751020_n.jpg?_nc_ht=scontent.cdninstagram.com&_nc_ohc=bTkk6coScAsAX9YpKgV&oh=e7c4a2efb0d580f01c338dc1b5f871f5&oe=5EFA2921
                                    #botolinone
#stayathomechallenge
#chipshotchallenge
                                    #1pahangnet2020
                                    #1pahangnet2020
                                    #1pahangnet2020