我正在尝试将 Sitemap.xml 添加到 React 应用

问题描述 投票:0回答:0

我正在尝试将 Sitemap.xml 文件添加到托管在 Netlify 上的 vite-react 应用程序,以便它在 google 上列出。在谷歌搜索控制台提交它时,它不断抛出一个错误

Sitemap contains HTML make sure that it is in XML format

this is my Sitemap.XML

My folder structure

有关更多详细信息,它说

Line 2 contains HTML tag 
我想它可能正在读取 index.html 文件作为站点地图我不知道如何但我的站点地图是 XML 格式.

我尝试了几个 Youtube 教程但没有结果

html css reactjs sitemap
© www.soinside.com 2019 - 2024. All rights reserved.