YoastSEO sitemap_index.xml 404 Not Found

1.Close YoastSEO sitemap

2.edit .htaccess file

# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
# Yoast SEO - XML Sitemap Rewrite Fix

RewriteEngine On

RewriteBase /

RewriteRule ^sitemap_index.xml$ /index.php?sitemap=1 [L]

RewriteRule ^locations.kml$ /index.php?sitemap=wpseo_local_kml [L]

RewriteRule ^geo_sitemap.xml$ /index.php?sitemap=geo [L]

RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]

RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?yoast-sitemap-xsl=$1 [L]

# END WordPress

3. open YoastSEO sitemap