Yoast Seo Sitemap.xml file missing: Recently one of my domain’s yoast seo sitemap.xml file is missing, this happened to me after updating yoast seo and few other plugins. So I really do not have idea on which updation created this issue.
Yoast seo plugin will generate a sitemap xml file in YOURDOMAIN.COM/sitemap_index.xml file which internally has the lot of xml file locations, each one for category, tag, page etc.,
Yoast SEO Sitemap.xml sample:
After browsing I came across a below working solution to get the yoast seo sitemap.xml file again,
Add the below snippet at the last in .htaccess file:
# WordPress SEO – XML Sitemap Rewrite Fix
RewriteRule ^sitemap_index\.xml$ /index.php?sitemap=1 [L]
RewriteRule ^([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]
# END WordPress SEO – XML Sitemap Rewrite Fix
Even after adding it to .htaccess file, I did not get the yoast seo sitemap.xml file back. Then I disabled yoast seo plugin xml sitemap generation option and re-enabled it then I could able to see the file.
Based on my assumptions any of these can cause this issue:
- Any of the plugin update or yoast seo update.
- Keeping more outdated plugins.
- May be dns or server side issues [ very rare].
Google webmaster search console: sitemaps can be added for indexing here.
Constantly verifying the crawl errors in google webmaster search console can help to improve your site preference.
If this solution is not working/you have different solution for the same issue, feel free to write in the comment section to help someone who is struggling to resolve this issue.
1,194 total views, 1 views today