我的 angular 7 应用程序 sitemap.xml 没有被网站管理员工具接收 [英] My angular 7 apps sitemap.xml is not being picked up by webmaster tools
本文介绍了我的 angular 7 应用程序 sitemap.xml 没有被网站管理员工具接收的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的 angular 7 应用 sitemap.xml 没有被网站管理员工具接收
My angular 7 apps sitemap.xml is not being picked up by webmaster tools
我有这个 sitemap.xml 文件(我隐藏了真实姓名):
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>https://mywebsite.co.uk/</loc>
<lastmod>2018-11-28T13:11:30+00:00</lastmod>
</url>
</urlset>
在网站站长工具中,我不断收到此错误:
您的站点地图似乎是一个 HTML 页面.请使用受支持的改为站点地图格式.
Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead.
但我的文件是 .xml 文件.所以我有点困惑.
But my file is a .xml file. So I'm a bit confused.
推荐答案
这与 Angular 有什么关系?XML 周围有 HTML 吗?
How is this related to Angular? Is there HTML around the XML?
应该只在 https://mywebsite.co.uk/sitemap.xml一个>
从我的网站之一复制的示例:
Copied Example from one of my sites:
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://mywebsite.co.uk/</loc>
<changefreq>weekly</changefreq>
<priority>1</priority>
</url>
</urlset>
这篇关于我的 angular 7 应用程序 sitemap.xml 没有被网站管理员工具接收的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文