google Sitemaps網(wǎng)站地圖相關(guān)知識
google Sitemaps網(wǎng)站地圖相關(guān)知識.
一,什么是Sitemaps?
Sitemaps協(xié)議使您能夠告知搜索引擎您網(wǎng)站中可供抓取的網(wǎng)址,使用Sitemaps協(xié)議的Sitemaps就是列有某個網(wǎng)站所有網(wǎng)址的XML文件。如本站的http://www.biuuu.com/auto.xml
二,XML文件信息?
XML文件提供網(wǎng)址、上次更新的時間、更改的頻率、與網(wǎng)站中其他網(wǎng)址相比它的重要性信息。示例如下:
<?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
四,實(shí)體轉(zhuǎn)義?
對于所有的XML文件,任何數(shù)據(jù)數(shù)值(包括網(wǎng)址)都應(yīng)對下表中列出的字符使用實(shí)體轉(zhuǎn)義碼。
字符 轉(zhuǎn)義碼
& 符號 & &
單引號 ‘ '
雙引號 ” "
大于 > >
小于 < <
五,gzip壓縮?
壓縮Sitemaps文件會降低對帶寬的要求,未壓縮的 Sitemaps 文件不得大于10MB。
六,Sitemaps文件?
提供的每個Sitemaps文件包括的網(wǎng)址不得超過50,000個。
七,Sitemaps索引文件?
Sitemaps索引文件只能列出不超過1,000個Sitemaps,Sitemaps索引文件只能指定與其位于同一網(wǎng)站的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服務(wù)器的根目錄處
版權(quán)聲明:本站文章來源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習(xí)參考,不代表本站立場,如有內(nèi)容涉嫌侵權(quán),請聯(lián)系alex-e#qq.com處理。