How to Fix Baidu Sitemap Plugin After Changing WordPress Domain

baidu sitemap pluginchange domain wordpressfix baidu sitemapphpmyadmin database cleanupbaidu structured data plugin
Published·Modified·

After changing the domain of Xiao Z Blog nearly two months ago, indexing by major search engines has fully recovered. The Baidu official structured data plugin (Baidu Sitemap) likely played a significant role. However, some users may find that after changing the domain, this plugin stops working correctly: it still submits historical data from the old domain and fails to submit new data.

This issue occurs because the Baidu official WordPress structured data plugin writes data directly into the database. When you change the domain, the data tables still contain the old domain information. Therefore, we need to clear or delete two specific data tables: wp_baidusubmit_sitemap and wp_baidusubmit_urlstat.

1. First, disable the Baidu structured data plugin (Baidu Sitemap) in the backend

Baidu Sitemap Figure 1-1: Baidu Sitemap

2. Log in to phpMyAdmin and select these two tables to clear or delete

Delete Tables Figure 2-1: Delete Tables

3. Re-enable Baidu Sitemap and verify

After completing the steps above, the Baidu structured data plugin will automatically resubmit the website content. This process has no negative impact on the website, so please proceed with confidence. I directly deleted the two tables mentioned above; after re-enabling the plugin, new tables will be generated, effectively reinstalling the plugin. I hope this helps those encountering this issue.