Hey,
When I want to activate and check the sitemap that the yoast seo plugin generates I get
the 404 page.
I already searched on the web for this problem and it seems to happen quite often.
but after this code that Yoast recommends to add to your htacces when you get a 404 error. I still get the error.
# WordPress SEO - XML Sitemap Rewrite Fix
<IfModule mod_rewrite.c>
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]
</IfModule>
# END WordPress SEO - XML Sitemap Rewrite Fix
I know you will tell me to use the other worpdress xml sitemap plugin. But I would like to know why this is not working.
Thanks
http://www.wpbeginner.com/wp-tutorials/how-to-fix-yoasts-wordpress-seo-sitemap-404-error/