google Sitemaps网站地图相关知识_建站经验_网站运营

google Sitemaps网站地图相关知识. 一,什么是Sitemaps?

google Sitemaps网站地图相关知识_建站经验_网站运营

google Sitemaps网站地图相关知识.

一,什么是Sitemaps?

Sitemaps协议使您能够告知搜索引擎您网站中可供抓取的网址,使用Sitemaps协议的Sitemaps就是列有某个网站所有网址的XML文件。如本站的http://www.biuuu.com/auto.xml

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

本文为网络共享文章,如有侵权请联系邮箱485837881@qq.com

作者: 佚名

为您推荐

返回顶部