网站管理员工具未提取我的Angle 7应用程序sitemap.xml [英] My angular 7 apps sitemap.xml is not being picked up by webmaster tools

查看:65
本文介绍了网站管理员工具未提取我的Angle 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>

这篇关于网站管理员工具未提取我的Angle 7应用程序sitemap.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆