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.

2
Leave a Reply

avatar
1 Comment threads
1 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
2 Comment authors
lukasz.cieslaGuy Milnes Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Guy Milnes
Guest

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.

Close Menu