Google XML Sitemaps, Yoast SEO – Error 403

If Google robot cannot access your sitemap, add this to your website .htaccess file.

# Sitemap 403 fix
<FilesMatch "(sitemap.xml|sitemap-.*.xml)">
	allow from all
</FilesMatch>
# END Sitemap 403 fix

You can modify “FilesMatch” line to your case.

0 0 vote
Article Rating
Subscribe
Notify of
guest
4 Comments
oldest
newest most voted
Inline Feedbacks
View all comments
Guy Milnes
8 months ago

Hi. Many thanks for this as I have that problem, but not sure what you mean by “You can modify “FilesMatch” line to your case”. Do I have to put something where the * is or the sitemap.xml?
Many thanks.

mohammad afshar
4 months ago

Google webmaster shows 403 error for my sitemap
I have no idea what it’s wrong with this!
As I have checked again, there is no page requires authentication.
Please help me what I should to do to resolve this issue.