
当我们提交sitemap地图到Google网站控制台时,会出现您的站点地图或站点地图索引文件未能正确声明命名空间的错误,那是怎么回事呢。接下来我告诉大家如何修改。

<!--站点地图文件 正确示例-->
<?xml version="1.0" encoding="utf-8" ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.aaaaaa.com</loc>
<lastmod>2022-01-23T11:03:59+00:00</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
</urlset>
我们需要找到网站主域名的sitemap.xml界面,查看是否添加了谷歌sitemap文件的命名空间的定义,添加上 就可以了。<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

成功案例演示:


推荐本站淘宝优惠价购买喜欢的宝贝:
本文链接:https://hqyman.cn/post/5426.html 非本站原创文章欢迎转载,原创文章需保留本站地址!
打赏

微信支付宝扫一扫,打赏作者吧~
休息一下~~