hexo-generator-sitemap
hexo-generator-sitemap copied to clipboard
Solution to sitemap submission failure (displaying "HTTP")
Error
「google」Submit the sitemap as follows:
Solution
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://www.example.com/page</loc>
<lastmod>2018-06-04T18:00:15+00:00</lastmod>
</url>
</urlset>
Remove the time after the date to submit successfully。 After modification, it changes to the following:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://www.example.com/page</loc>
<lastmod>2018-06-04</lastmod>
</url>
</urlset>
it's weird. my sitemap looks the same and it's valid.
<lastmod>2013-07-19T22:39:00+07:00</lastmod>
The error message provided by google does not match the solution you made. The issue may be caused by other reasons.
https://github.com/hexojs/hexo-generator-sitemap/pull/94 removes the time after date.