我有 sitemap.xml,但许多 SEO 审核网站说我没有...如何解决?

I have sitemap.xml but many SEO audit websites say I don't have...what is the fix?

我生成了 sitemap.xml 并将其安装在我的网站 public 文件夹中,因此我的网站 www.example.com/sitemap.xml 正在运行.但是我用过几个SEO审计工具,比如Woorank和SEO power suite,他们都说找不到sitemap.xml,即使我把它包含在robots.txt文件

Sitemap: http://www.example.com/sitemap.xml
User-agent: *
Disallow: /directory-x
Disallow: /directory-y

还是一样的问题。我在放置 sitemap.xml 时是否遗漏了什么?

如果您可以使用浏览器正确访问您的站点地图,那么您就可以了。如果您想要第三方确认,请在 Google Search Console 注册您的网站并在那里提交您的站点地图。如果有任何问题(即使是 robot.txt 问题),Google 会通知您。

试试这个:

User-agent: *
Disallow: /directory-x
Disallow: /directory-y
Sitemap: http://www.example.com/sitemap.xml
Host: www.example.com