Problem with YOAST SEO WordPress Plugin Sitemap
I have recently installed the YOAST SEO Plugin and want to submit my xml sitemap to google however when I click on the sitemap portion of the plugin it gives me a 404 error. Any assistance that could be provided here would be appreciated.
Welcome to the forum! If you or your developer places the below at the top of your .htaccess file this should fix the problem:
# 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
Hope that helps. Let us know if you have any other issues or questions.
Disclaimer: We spend hours researching and writing our articles and strive to provide accurate, up-to-date content. However, our research is meant to aid your own, and we are not acting as licensed professionals. We recommend that you consult with your own lawyer, accountant, or other licensed professional for relevant business decisions. Click here to see our full disclaimer.
Product or company names, logos, and trademarks referred to on this site belong to their respective owners.