当前位置: 移动技术网 > 网络运营>推广>网站建设 > google Sitemaps网站地图相关知识

google Sitemaps网站地图相关知识

2018年11月07日  | 移动技术网网络运营  | 我要评论
google Sitemaps网站地图相关知识. 一,什么是Sitemaps? Sitemaps协议使您能够告知搜索引擎您网站中可供抓取的网址,使用Sitemaps协议的Sitemaps就是列有某个网站所... 09-04-02

google sitemaps网站地图相关知识.

一,什么是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文件,任何数据数值(包括网址)都应对下表中列出的字符使用实体转义码。

字符 转义码
& 符号 & &amp;
单引号 ‘ &apos;
双引号 ” &quot;
大于 > &gt;
小于 < &lt;

五,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服务器的根目录处

如您对本文有疑问或者有任何想说的,请点击进行留言回复,万千网友为您解惑!

相关文章:

验证码:
移动技术网