hexo-generator-sitemap icon indicating copy to clipboard operation
hexo-generator-sitemap copied to clipboard

Solution to sitemap submission failure (displaying "HTTP")

Open AimTao opened this issue 4 years ago • 3 comments

Error

「google」Submit the sitemap as follows:

error

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>

AimTao avatar Apr 07 '20 06:04 AimTao

it's weird. my sitemap looks the same and it's valid.

<lastmod>2013-07-19T22:39:00+07:00</lastmod>

tuananh avatar Apr 17 '20 13:04 tuananh

The error message provided by google does not match the solution you made. The issue may be caused by other reasons.

stevenjoezhang avatar Apr 21 '20 13:04 stevenjoezhang

https://github.com/hexojs/hexo-generator-sitemap/pull/94 removes the time after date.

curbengh avatar Jun 30 '20 13:06 curbengh