google Sitemaps网站地图相关知识. 一,什么是Sitemaps? Sitemaps协议使您能够告知搜索引擎您网站中可供抓取的网址,使用Sitemaps协议的Sitemaps就是列有某个网站所有网址的XML文件。如本站的http://www.biuuu.com/auto.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服务器的根目录处