I have successfully installed and used Yoast SEO plugin in my WordPress -WooCommerce site but I am unable to generate sitemap.xml or sitemap_index.xml.

I have tried almost all the options available on Google like:

  1. Reset permalinks

  2. added the rewrite rules to htaccess file as describe in http://www.wpbeginner.com/wp-tutorials/how-to-fix-yoasts-wordpress-seo-sitemap-404-error/

My .htaccess code is :

WordPress SEO – XML Sitemap Rewrite Fix

RewriteEngine On
RewriteBase /
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

  1. Tried to load the non-pretty sitemap URL? example.com/index.php?sitemap=1

  2. Tried everything as describe in http://www.wpbeginner.com/beginners-guide/what-is-a-wordpress-sitemap-how-to-create-a-sitemap-in-wordpress/

Now you are the my only hope for getting solution of my problem…

please help me….

Read more here: Sitemap not generating – 404 Error : Now you are the my only hope


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: