加入收藏 | 设为首页 | 会员中心 | 我要投稿 烟台站长网 (https://www.0535zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 运营中心 > 建站资源 > 经验 > 正文

google Sitemaps网站地图有关知识

发布时间:2021-12-27 11:17:46 所属栏目:经验 来源:互联网
导读:一,什么是sitemaps? sitemaps协议使您能够告知搜索引擎您网站中可供抓取的网址,使用sitemaps协议的sitemaps就是列有某个网站所有网址的xml文件。如本站的http://www.biuuu.com/auto.xml 二,xml文件信息? xml文件提供网址、上次更新的时间、更改的频率、与
一,什么是sitemaps?
 
sitemaps协议使您能够告知搜索引擎您网站中可供抓取的网址,使用sitemaps协议的sitemaps就是列有某个网站所有网址的xml文件。如本站的http://www.biuuu.com/auto.xml
 
二,xml文件信息?
 
xml文件提供网址、上次更新的时间、更改的频率、与网站中其他网址相比它的重要性信息。示例如下:
 
<?xml version=”1.0′ encoding=”utf-8′?>
<urlset xmlns=”http://www.google.com/schemas/sitemap/0.84′>
<url>
<loc>http://www.biuuu.com/</loc>
<lastmod>2009-01-19</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
</urlset>
 
三,字符编码?
 
utf-8
 
四,实体转义?
 
对于所有的xml文件,任何数据数值(包括网址)都应对下表中列出的字符使用实体转义码。
 
字符     转义码
& 符号     &     &
单引号     ‘     '
双引号     ”     "
大于     >     >
小于     <     <
 
五,gzip压缩?
 
压缩sitemaps文件会降低对带宽的要求,未压缩的 sitemaps 文件不得大于10mb。
 
六,sitemaps文件?
 
提供的每个sitemaps文件包括的网址不得超过50,000个。
 
七,sitemaps索引文件?
 
sitemaps索引文件只能列出不超过1,000个sitemaps,sitemaps索引文件只能指定与其位于同一网站的sitemaps。
 
xml格式的sitemaps索引示例:
 
<?xml version=”1.0′ encoding=”utf-8′?>
<sitemapindex xmlns=”http://www.google.com/schemas/sitemap/0.84′>
<sitemap>
<loc>http://www.biuuu.com/sitemap1.xml.gz</loc>
<lastmod>2009-01-19t18:23:17+00:00</lastmod>
</sitemap>
<sitemap>
<loc>http://www.biuuu.com/sitemap2.xml.gz</loc>
<lastmod>2009-01-19</lastmod>
</sitemap>
</sitemapindex>
 
八,sitemaps存放位置?
 
sitemaps放置在web服务器的根目录处

(编辑:烟台站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读