Инструменты Google для веб-мастеров говорят, что моя XML-карта сайта «выглядит как HTML-страница»

Я отправляю свою динамическую карту сайта для приложения rails в формате «sitemap.xml.gz», но инструмент веб-мастера Google не индексирует ее.

Я получаю эту ошибку.

"Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead."

На моем сайте есть видео и изображения. И я создаю карту сайта, используя гем sitemap_generator.

Это сгенерированная карта сайта.

<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1" xmlns:geo="http://www.google.com/geo/schemas/sitemap/1.0" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:pagemap="http://www.google.com/schemas/sitemap-pagemap/1.0" xmlns:xhtml="http://www.w3.org/1999/xhtml" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>https://relatednoise.com</loc>
<lastmod>2015-07-08T15:21:48+05:30</lastmod>
<changefreq>always</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://relatednoise.com</loc>
<lastmod>2015-07-08T15:21:48+05:30</lastmod>
<changefreq>daily</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://relatednoise.com/how-it-works</loc>
<lastmod>2015-07-08T15:21:48+05:30</lastmod>
<changefreq>daily</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://relatednoise.com/features</loc>
<lastmod>2015-07-08T15:21:48+05:30</lastmod>
<changefreq>daily</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://relatednoise.com/features/for-everyone</loc>
<lastmod>2015-07-08T15:21:48+05:30</lastmod>
<changefreq>daily</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://relatednoise.com/features/for-brands</loc>
<lastmod>2015-07-08T15:21:48+05:30</lastmod>
<changefreq>daily</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://relatednoise.com/themes</loc>
<lastmod>2015-07-08T15:21:48+05:30</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>

person Bloomberg    schedule 09.07.2015    source источник


Ответы (1)


Ваша карта сайта, кажется, перенаправляет на вашу домашнюю страницу, а это HTML-страница.

HTTP/1.1 302 Found
Access-Control-Allow-Origin: *
Cache-Control: no-cache
Content-Type: text/html; charset=utf-8
Date: Thu, 09 Jul 2015 20:13:46 GMT
Location: https://relatednoise.com/
Server: nginx/1 [...]
person methode    schedule 09.07.2015
comment
Спасибо @methode, но я не могу понять, почему его перенаправляют на домашнюю страницу. - person Bloomberg; 10.07.2015
comment
Похоже, что все, что не существует, будет перенаправлено на домашнюю страницу. Попробуйте поискать подсказки в файлах конфигурации сервера. - person methode; 10.07.2015