Are you facing issues with Sitemap in Yoast SEO Plugin?
Now a days everyone has a website for their business, but the thing is that to make it branding all over digitally is a big task .
We all know that for a wordpress site , a very popular plugin is Yoast SEO which improves the site SEO. Nearly 5+ Million people are actively using this plugin as per wordpress statistics.
Why you should prefer for using YOAST SEO instead of manual upload of coding in your root folder is that ,it helps to index your website very fast than that method of uploading directly.
So go for it and use the Yoast SEO plugin and you can find a small error like this ,but it is a small piece of cake to rectify it.
Why I have this post here is that i got a sitemap error of 404 after installed this plugin. This is quite disturbing for beginners who uses the plugin for the first time, but this can be easily rectified. So here comes how we overcome this issue .
What is 404 Error?
A 404 error is an HTTP standing code that means, wherever the page you were making an attempt to achieve on a website could not be found thereon server.
In simple terms file is not present there in specified server.
How You Might See the 404 Error
Here are some common ways that during which you would possibly see the HTTP 404 error displayed:
- 404 Error
- The requested URL was not found on this server
- 404 Not Found
- Error 404
- 404 page not found
- HTTP 404 Error
Below is the picture replicates 404 error of sitemap page
Steps to Resolve Sitemap 404 Error Issue
1.Now Log into your WordPress Dashboard
Go for the Settings–>Permalinks
Don’t edit anything and simply click save button
Permalink Settings reset method quickly solve this issue of 404 error when it has occurred after a recent change to your theme installation.
So after trying this method just check it for refreshing of URL ,whether it is working or not.If the error disappeared after this,then your problem solved by this point only.
If it not so,follow below steps
2.Go to SEO in wordpress dashboard
3.Click on General and go for Features tab
There check out for sitemap is enabled or not. If it is not enabled, enable it by dragging the button.
4. Then go for Tools options under SEO
Click on that and go for File Editor
5. Under .htaccess file you need to paste a piece of code
Just copy and paste below code in .htaccess file
# Start Yoast SEO – Sitemap Fix for Normal WordPress Install
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?xsl=$1 [L]
# END Yoast SEO – Sitemap Fix for Normal WordPress Install
Once you have done with copy and paste above code, click on save button.
Just make sure that your sitemap is working or not by checking with your URL status
E.g : www.yourURL.com/sitemap_index.xml
You can also verify it in google webmaster tool .Just login to your webmaster tool integrated for your site and go for
In the top right side of your webmaster tool, you can see the URL with Test and submit button .
Just enter the filename (sitemap_index.xml) and make a test ,then check out the result .
If the test passes with no error, then no issues or else you will find with an error rectifying what?
That’s it. Your Problem solved!!
Anyone has the same issue with different solution, just post your solution in comment section.so that all can be out of this hectic!
If this method not works for you, you can opt for the premium version of Yoast SEO and contact their supportable team if you face problem still. But with the premium version, you are not going to face the problem. Why the problem appear and why Yoast SEO team is not resolved the query is questionable still. But it is the necessity that you have to stick to Yoast SEO plugin and fix Yoast’s WordPress SEO sitemap 404 error for better ranking and faster crawling by search engine crawlers.
1 thought on “How to Fix Sitemap Error Of 404 in Yoast SEO Plugin”
Undeniably consider that which you stated. Your favourite reason seemed to be on the web the simplest factor to keep in mind of.
I say to you, I certainly get irked even as other people
consider issues that they plainly don’t recognise about.
You managed to hit the nail upon the top and defined out the
entire thing with no need side effect , people can take a
signal. Will probably be back to get more. Thanks