Choose the appropriate link submission method based on the actual situation of your WordPress site

Baidu’s active link push method has brought us a lot of convenience, improved a lot of efficiency, and saved a lot of time for our webmasters. However, from the sharing of Baidu webmasters, we know that many webmasters find that the active push method is not effective. We can look at the screenshot of the above 511 meet website push:

So how to choose the right way to submit the link to Baidu? Let's listen to Baidu Dana's sharing.

The link submission method officially provided by the webmaster platform is as follows. Let's take a look at its description and comparison, and make reasonable use of these submission methods to complement each other.

1、主动推送(实时):The fastest submission method, the new links generated on the site can be pushed to Baidu in real time and actively through this method to ensure that the new links can be included in Baidu in time and recommended.
2、自动推送:The most convenient way to submit is to deploy the automatically pushed JS code in the source code of each page of the site. The link to the page where this code is deployed will be automatically pushed to Baidu every time it is viewed. Can be used in conjunction with active push.
3、sitemap:You can put website links in the sitemap regularly, and then submit the sitemap to Baidu. Baidu will periodically crawl and check the sitemap you submit, and process the links in it, but the collection speed is slower than active push.
4、手动提交:Submit the link to Baidu at one time. This method can be used for a small number of page submissions.

One: Reasonable use of active push tools, the benefits brought by the following aspects:

1: Be discovered by Baidu in time, which can shorten the time for Baidu crawlers to discover new links to your site, so that newly published pages can be included by Baidu in the first time. After testing, submit pages in this way and basically be able to be included in a few minutes Baidu Discovery;
2: Protect originality. For the latest original content of the website, use the active push function to quickly notify Baidu, so that the content can be discovered by Baidu before forwarding. This is more important for the majority of small and medium-sized webmasters.
3: Save bandwidth and reduce server pressure, because the number of pages submitted each time is limited.
In the rapidly changing Internet, 1 microsecond decides the outcome. I summarize the following experiences, which can make Baidu index pages faster and save bandwidth. I hope to help students. The active push method is as follows:
first enter the Baidu webmaster background, get your access key in the link submission, the specific push example has been explained in detail in the webmaster background, I will not repeat it, I will give an example below When to push the submission.

Baidu submission

Baidu submission

Take PHP as an example. Create a class first. Of course, you can create a JS code to trigger the transfer.

function post_site ($url){
$urls =array($url);
$api ='http://data.zz.baidu.com/urls?site=您的网址&token=【准入密钥】&type=original';
$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);
return $result;
}

Example of successful return:

{   
 "remain":4999998,    
"success":2,}

RemainIt represents the successnumber of items you can post, and the number of items you can post. Of course, you can build a database table and record the commit log for monitoring.

Baidu submission

Now you can make adjustments during the page generation process. You can choose to push in real time when generating HTML static pages, as long as you post_ping($url) the generated correct URL. If your page is not a static page, you can directly trigger the transfer when you review or publish it, and you can also push it to Baidu easily and quickly. In this way, Baidu skips several steps during normal crawling, and of course the inclusion is fast.
您也要对收录的进度进行监控。主动推送的数据隔天就能看到了,你如果记录了当天推送的数量,进行一个对比,就知道推送成功了多少,也可以使用sitemap补全数据。

Baidu submission

注意事项:推送的页面必须要能打开。使用这个工具时要注意,老的、低质量的网页链接不要推送了。

two. Use sitemap to complete data

The sitemap submission method is to periodically place the website link in the sitemap, and then submit the sitemap to Baidu.
Using active push can make Baidu discover your web pages faster, but also to prevent spiders from being unable to crawl the pages smoothly due to network delays, DNS errors, server pressure and other factors, we can use sitemap to complete the data. Regularly generate a sitemap when the server pressure is relatively small, and push it again, so that it is foolproof.
The other two push methods are automatic push and manual push. Automatic push can be basically achieved by adding the js code provided by the webmaster platform to the website. This does not require any operation. Manual push is only suitable for novices, because only the URL Just submit the copy form directly.
I suggest you read: Several ways to actively push your wprdpress website to Baidu Spider  http://www.511yj.com/seo-wordpress-baidusitemap-tuisong.html

Reference articles:


▪Suggestions from  Baidu webmaster SEO experts to new websites

▪  What are the similarities and differences between the inclusion and index of Baidu search

▪  Baidu webmaster platform's suggestions on SEO

▪ The  most complete summary of foreign links in history | 511 Meet is highly recommended

▪Learn how  Baidu search engine works

▪Optimizing the  setting of permalinks on wordpress websites is conducive to SEO

Guess you like

Origin blog.csdn.net/zcp528/article/details/108690089