I have created a static website hosted on an AWS S3 bucket and have already verified the property in Google Search Console. I also created and uploaded a valid sitemap.xml file to the root of the website.
The issue is that whenever I submit the sitemap in Google Search Console, the status shows:
"Couldn't fetch"
However, if I open the sitemap URL directly in a browser, the sitemap loads correctly and is publicly accessible.
What I have already verified:
- The sitemap is publicly accessible.
- The sitemap URL opens successfully in a browser.
- The website is hosted on AWS S3.
- The property is added to Google Search Console.
- The sitemap is located in the root directory.
- The sitemap XML appears valid when viewed in the browser.
One thing I noticed is that my S3 Static Website Hosting endpoint is only available over
HTTP, not
HTTPS. Could this be the reason Google Search Console is unable to fetch the sitemap? If so, what is the recommended way to enable HTTPS for an S3 static website? Do I need to place CloudFront in front of the bucket and use an SSL certificate?
Could someone help me understand why Google Search Console is unable to fetch the sitemap even though it is accessible from a browser? Are there any common issues related to:
- AWS S3 Static Website Hosting
- Bucket permissions
- Sitemap format
- robots.txt
- Search Console property configuration
- HTTP vs HTTPS endpoints
Any guidance would be greatly appreciated.