Generally, it is okay to install baidu site map (baidu-sitemap-generator) and google site map (google-xml-genrator) on wordpress.
If you use the Godaddy host like me, install and enable it directly.
An error occurs when you write the sitemap file. Ensure that this file exists and can be written. "
This indicates that the site map plug-in cannot find the sitemap path and cannot perform read/write operations on it. We need to customize the sitemap path.
Google site map custom sitemap path
Solution 1:
Use the debug function of Google site map to find [DOCUMENT_ROOT] and find the corresponding path.
Enter "custom sitemap location" in the Google site map.
Solution 2:
Upload the path. Php file (download) to the root directory of your website, open it in the browser, copy the displayed path, and enter "custom sitemap location"
Baidu site map custom sitemap path
Obtain the [DOCUMENT_ROOT] path in the same way and edit the Baidu Sitemap Generator plug-in code.
Set LCZ_GetHomePath to the above path and save it.
Now generate a site map to see if the site map is successfully generated?