hi hrishkesh. im trying to add _redirects file but it always gets appended once it reaches netlify. is there a way to have the system not do this and upload the filename as it is?
i did get the googlebot to search. but it always reads sitemap as html. weird.
Sitemap Type Submitted Last read Status
/sitemap Unknown Jan 15, 2024 Jan 15, 2024 1 error
Since _redirects gets renamed to _redirects.txt , i placed redirects and headers in netlify.toml instead, and it returns that error. does the toml file look ok? i specifically set the content type in the redirects portion
Sitemap
[[headers]]
for = “/sitemap.xml”
[headers.values]
Content-Type = “application/xml”
[[redirects]]
from = “/sitemap”
to = “/sitemap.xml”
status = 301
force = true
headers = {Content-Type = “application/xml”}
yes. you are right. i have no clue why googlebot does not fetch it. maybe they block netlify sites. i gave up on this. all the things i did, there is no problem with netlify. googlebot just does not fetch the sitemap.
i even tried to host the sitemap from a different site. it works, and googlebot crawled it. but no pages were indexed. weird.