Last updated: February 21, 2023 at 1:27 PM
In conjunction with the migration of the core server (V1) the other day, I was checking the operation of this website, and I noticed that when I opened the administration page of the WordPress plugin XML Sitemaps, as shown on the following screen, there was an error in ping the search engine Bing (There was a problem while notifying Bing.) has occurred.
XML Sitemaps is a plugin that automatically creates XML sitemaps that notify search engines such as Google, Bing, and Yahoo of their site's index, and notifies search engines of article updates by pinging.
On this screen, click View result When you click on it, the following screen is displayed.
You can find out more by putting it in debug mode and running it again, but apparently the ping is failing.
Traditionally, this has been said to occur when you are not registered with Bing Web Master Tools, but in my case, it seems to be a different cause because it is already registered.
Therefore XML Sitemaps plug-in page I checked the support thread and found the following thread:
@almendron @ctmartin2020: We have addressed the issue. Bing has removed the feature of instant pinging. As a result, we have removed the feature from the plugin as well. Bing will automatically crawl the sitemap every 24 hours interval and the sitemap URL must be defined in the robots.txt (which the plugin does out of the box).
Support Threads
【日本語訳】
@almendron@ctmartin2020: I addressed this issue. Bing has removed the instant ping feature. As a result, we've removed this feature from plugins as well. Bing will automatically crawl your sitemap at 24-hour intervals, and the sitemap URL should be defined in robots.txt (plugins are ready to use).
Conclusion. As for Bing, the ping feature has been deprecated, so the URL of the sitemap should be specified in robots.txt.
In robots.txt, define a site map as follows:
Sitemap: https://senris.com/sitemap.xml
In addition, since core sitemaps are supported from WordPress 5.5, if you install the plugin XML Sitemaps, sitemaps will be created in two places, which will cause problems.
If you are installing this plugin, you should add the following definition to functions.php in your theme's directory to prevent WordPress from generating sitemaps.
/* コアサイトマップ機能の無効化
---------------------------------------------------------------- */
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
add_filter( 'wp_sitemaps_enabled', '__return_false' );
The definition of robots.txt was given earlier, but for reference, examples (excerpts) of other parts are also posted below.
Bing seems to have a relatively high crawler load, so it defines "Crawl-delay: 5". Other heavy-duty crawlers, such as China's Baidu and Russia's Yandex, are denied access.
User-agent: *
Disallow: /wp-admin/
Disallow: /wp-includes/
Disallow: /wp-content/plugins
Disallow: /wp-content/cache
Disallow: /wp-content/gt-cache
Disallow: /*.php$
Disallow: /*.gz$
Disallow: /*.cgi$
Disallow: /cgi-bin/
Allow: wp-includes/js/
Allow: /cgi-bin/joyful/joyfulx.cgi
User-agent: MJ12bot
Disallow: /
User-agent: AhrefsBot
Disallow: /
User-agent: BLEXBot
Disallow: /
User-agent: Yandex
Disallow: /
User-agent: baiduspider
Disallow: /
User-agent: BaiduMobaider
Disallow: /
User-agent: BaiduImagespider
Disallow: /
User-agent: SemrushBot
Disallow: /
User-agent: LSSRocketCrawler
Disallow: /
User-agent: LinqiaScrapeBot
Disallow: /
User-agent: Wotbox
Disallow: /
User-agent: Steeler
Disallow: /
User-agent: Shim-Crawler
Disallow: /
User-agent: tbot-nutch
Disallow: /
User-agent: SurdotlyBot
Disallow: /
User-agent: bingbot
Crawl-delay: 5
Sitemap: https://senris.com/sitemap.xml
2022.07.01 Update
Setting the Tracking ID for Google Analytics
In the configuration of XML Sitemap 4.1.5, a setting for the tracking ID of Google Analytics has been added. If you do not have this setting, the following warnings will be displayed:
Please add Google analytics tid in order to notify Google bots.
Apparently, if you don't do this, notifications to Google won't work properly.
On this site, I entered the measurement ID of Google Analytics 4, the successor to Universal Analytics, in the setting item of "Add Google Analystics TID".
2022.08.24 Update
This plugin has since uninstalled because there were many problems such as errors in loading the sitemap in the Google Search Console.
Currently, when it comes to the site map feature, Yoast SEO It has been transferred to: