大网数据广告活动
网站运营与故障问答

URLs in sitemap not allowed in Google search console

· 52CE 我爱测

I have a new website for which I setup Google Analytics, Google Search Console and Bing Webmaster Tools. These were setup last week Wednesday (5 days ago at time of writing). I submitted the sitemap to Bing Webmaster Tools and Go…

问题原文

原帖链接 · darkpool · CC BY-SA 4.0

I have a new website for which I setup Google Analytics, Google Search Console and Bing Webmaster Tools. These were setup last week Wednesday (5 days ago at time of writing).

I submitted the sitemap to Bing Webmaster Tools and Google Search Console. Bing works perfectly and is happy with the sitemap.

Google search console sais Sitemap can be read, but has errors and then goes on to say This url is not allowed for a Sitemap at this location. Here's a screenshot:

My sitemap is at the root, ie: www.example.com/sitemap.xml. Here it is:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://www.example.com/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.5</priority>
  </url>
  <url>
    <loc>https://www.example.com/pricing/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.5</priority>
  </url>
  <url>
    <loc>https://www.example.com/contact/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.5</priority>
  </url>
  <url>
    <loc>https://www.example.com/faq/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.5</priority>
  </url>
</urlset>

When setting up Google Search Console you can select Domain Verification or URL prefix. I selected Domain Verification. However since getting the above error I also tried URL prefix which results in the same issue.

I only have 4 urls on the website and so I went to URL inspection and requested indexing for each of them manually. The next day I came back to check and they are all now indexed correctly.

Please note that I do have a robots.txt in place as follows:

User-agent: *
Disallow:
Sitemap: https://www.example.com/sitemap.xml

So it appears as though my site and all urls are indexed correctly, it is just the sitemap that search console is complaining about. As mentioned, Bing webmaster tools is happy with the sitemap and I am confident it does not contain errors because it is generated automatically by my backend.

Do I need to be worried about this or can it be safely ignored? I'm not sure what else I can do since my domain verified correctly and the urls I submitted manually are now indexed?

已采纳解答

原帖链接 · MrWhite · CC BY-SA 4.0

You have a typo in the domain of the sitemap URLs.

Your canonical hostname is www.feederloop.com, but you are using www.feederlop.com (one o) in your sitemap URLs, which is indeed invalid.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2021-05-10)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。