Lack of interest Baidu sitemap submission.

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

ShikiSuen

Well-known member
A Simplified-Chinese site is likely to be d-e-a-d in the MCG-Circle if not catched by Baidu at all.

However, it appears that Baidu till now cannot retrieve sitemaps pushed by XenForo. At least, in most case, only homepages are searchable through Baidu.

Maybe I need to state how Baidu retrieves automatic sitemap submission.

First, the sitemaster needs to register at https://ziyuan.baidu.com/linksubmit and add his website to this portal.
After that, you get a token address (which does not contain any "sitemap.php" string):
http://data.zz.baidu.com/urls?site=https://xenforo.com/community&token=TESTSITETOKEN
1623560536043.webp
Sample PHP pushing code sending sitemap.php contents to Baidu:
PHP:
$urls = array(
    'https://xenforo.com/community/sitemap.xml',
);
$api = 'http://data.zz.baidu.com/urls?site=https://xenforo.com/community&token=TESTTOKEN';
$ch = curl_init();
$options =  array(
    CURLOPT_URL => $api,
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POSTFIELDS => implode("\n", $urls),
    CURLOPT_HTTPHEADER => array('Content-Type: text/plain'),
);
curl_setopt_array($ch, $options);
$result = curl_exec($ch);
echo $result;
Sample PHP pushing using POST:
Code:
POST /urls?site=http://data.zz.baidu.com/urls?site=https://xenforo.com/community&token=TESTTOKENHTTP/1.1
User-Agent: curl/7.12.1
Host: data.zz.baidu.com
Content-Type: text/plain
Content-Length: 83
https://xenforo.com/community/sitemap.xml
 
Upvote 1
This suggestion has been closed. Votes are no longer accepted.
Back
Top Bottom