Fixing the Yoast SEO XML Sitemap for Open SEO Stats Chrome Extension

Yoast_SEO Plugin for WordPressYoast is a good SEO plugin for WordPress if you’re like me and don’t want to spend 2 hours on each post or page you want to publish.  However, I just noticed that my chrome extension was saying that my website didn’t have a sitemap! ha… I’m using WordPress with the Yoast plugin and it generates a sitemap as sitemap_index.xml

So anyway, to get the “green checkmark” from the chrome Open SEO stats Extension and avoid confusing the ‘internet’ just put this following code in your .htaccess: (Make sure mod-rewrite is on… but really, who’s isn’t for WordPress sites – oh, and of course replace your website name for exampledomainname, and remove the “s” on https if your site isn’t secure):


RewriteCond %{HTTP_HOST} ^exampledomainname\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.exampledomainname\.com$
RewriteRule ^sitemap\.xml$ "https\:\/\/www\.exampledomainname\.com\/sitemap\_index\.xml" [R=301,L]

Summary
Fixing the Yoast SEO XML Sitemap for Open SEO Stats Chrome Extension
Article Name
Fixing the Yoast SEO XML Sitemap for Open SEO Stats Chrome Extension
Description
Fixing the Yoast SEO XML Sitemap for Open SEO Stats Chrome Extension
Author
Publisher Name
MAX Website Design, LLC
Publisher Logo
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *