一,什么是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服務器的根目錄處
新聞熱點
疑難解答