Closed Blockgeni closed 4 years ago
@wpsmort can you do some research on this and see what HTTP content-type header Google is expecting from us? Our main competitor is sending out text/xml
We've always used text/html
, but these errors have been popping up more frequently as of late. Sending out application/xml
might be an improvement.
@arnaudbroes Google expects text/xml which is what we output (I verified this in the code). However, there is one line of code in the sitemap module where we output text/html below:
We could change that one line, although it's only output if the sitemap has no content.
@wpsmort correct. Since we only output text/html
when the sitemap returns a 404, we can safely assume this a not a bug. Therefore I'll go ahead and close the issue for now.
@Blockgeni you'll want to check that your sitemap actually contains any content and that your robots.txt file isn't blocking Google's crawler from accessing your sitemap. Feel free to reopen this issue if that isn't the case.
The sitemap generated is showing an error on google search console "Your Sitemap does not contain any URLs. Please validate and resubmit your Sitemap." The error as per site map validator "
"
Please resolve this bug. Thank you