Will this code correctly instruct Google to index my sitemap (or make it aware it exists)?
<link rel="sitemap" href="./sitemap.txt" type="text/plain" title="Sitemap" />
Google states in their instructions that plain text files simply listing URLs are permitted as sitemap format, but I could not find any verified solution as to how to link to this kind of file in the HTML <head>
.
I modified the solution in this answer by changing the type
attribute. Is this an accepted way to link to a plain text sitemap file?
I realize I can submit the file to Google directly, eg.
https://www.google.com/ping?sitemap=FULL_URL_OF_SITEMAP
(Source)
But I'd like to include it in markup so other search engines (and whoever wants it) can possibly find it too.